Use OrderedDict to dedupe stably | Yahoo SQL Question