Sorting In Python Without Sort Function