Reversing An Array In Place In Python