insertion sort code in python