I used for this example webapp2 to cover the routing.
from webapp2_extras.routes import RedirectRoute as Route
Import from views:
from views import MainPage
MainPage is the handler set into root "/":
urlpatterns = [
Route('/', MainPage),
]