I\'ve been using Flask to provide a simple web API for my k8055 USB interface board; fairly standard getters and putters, and Flask really made my life a lot easier.
No there is not tasks support in Flask, but you can use flask-celery or simply run your function in separate thread(greenlet).