Python Travelling Salesman Problem