selection sort in python