Move import of flask