Object-Oriented Routing Python

edited to be more object-oriented?