Python: how to swap two items in a list