support for werkzeug 0.8 (Python2-only)