Refactored Route class to support python 3