Slow Insertion Sort Python Code