shell sort in python