python mergesort working