add function to setup script which activates the flask environment