fixed some pep8 complaints on valid route checker