python convert set to ordered list