flask methods not defined code example Example: NameError: name 'request' is not defined from flask import request