Be compatible with newer flask babel as well