Better version of main.py with a post to another url /testform with handler