Why Sort Returns None Python