no self in flask