Control Flask in-process