Part2 usingusers

This line is wrong:
application = webapp2.WSGIApplication([('/', MainPage)], debug=True)

It should be:
app = webapp2.WSGIApplication([('/', MainPage)], debug=True)