Whitespace cleanup - PEP8
Update config / url route matching to avoid double lookup

Minor tweak to use any() instead of reduce function.