Select sort with python