def get_routes(package):
return list(chain(*[get_module_routes(modname) for modname in<EOL>gen_submodule_names(package)]))<EOL>
This will walk ``package`` and generates routes from any and all
``APIHandler`` and ``ViewHandler`` subclasses it finds. If you need to
customize or remove any routes, you can do so to the list of
returned routes that this generates.

:type  package: package
:param package: The package containing RequestHandlers to generate
    routes from
:returns: List of routes for all submodules of ``package``
:rtype: [(url, RequestHandler), ... ]