Convert to python stack with Flask