Fix NameError: global name 'mime' is not defined
Fix missing mimetypes import
Fix missing mimetype name in appengine.py