self.response.out.write('Happy New Year ' + str(url))
application = webapp.WSGIApplication([('/myapp/(?P<url>\\d{4})/$', MainPage
    )], debug=True)

def main():
    run_wsgi_app(application)
if __name__ == '__main__':
    main()
Python webapp dynamic paths