Finished selection sort in python.