Python Implementation of Selction Sort