class MainHandler(webapp.RequestHandler):

    def get(self):
        path = os.path.join(os.path.split(__file__)[0], 'test.txt')
self.response.out.write(os.stat(path).st_mtime)

def main():
    application = webapp.WSGIApplication([('/', MainHandler)], debug=True)
util.run_wsgi_app(application)
if __name__ == '__main__':
    main()
Read a file on App Engine with Python?