Python Sorting Numbers Using Sorted Function