Fixed the Python insertion sort