Fix failing test in py27 and wtforms 1.0.5