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