flask: enabled multithreading