how to use with flask