create flask object