Get flask out of actions.py