python flask rest api and draft of terminal post