form stuff for python