Python version sorting tool