Sorting List In Python Without Sort Function