Use redirect package flask.ext to import the extension