[python] How can I reorder a list?