have a private py2/py3 _compat module to not depend on a specifc flask version