How to develop a Python-based system for optimizing public transportation routes?