TriggerEDM: preserve order in getPreregistrationList
Make getPreregistrationList
reproducible by preserving the order of
collection names when removing duplicates. This is useful when comparing jobs that deserialize Run-1 data as the order of registered collections does seem to influence the size of the serialized data.
Also remove Python2 backwards compatibility code.