Solving the Travelling Salesman Problem in Python