POST integration with flask