flask_formencode code