updated for Flask-WTF 0.9+