Get rid of Flask as dependency