use multi-threaded flask dev server to prevent HTTP requests from hanging in Chrome
Chrome opens a TCP connection to the API server without making a HTTP request, which causes other API requests to hang for a varying amount of time because the flask dev server is single-threaded by default. A workaround is to use threaded=True to make the flask dev server multi-threaded.
See https://hackernoon.com/chrome-preconnect-breaks-singly-threaded-servers-95944be16400