Insertion sort coded in pyhon