Revert "using flask"

This reverts commit 4b7fa3784e5d201a460b5d90c60e2ce0c0a01ab5.