replace couchforms update handler with python equivalent

Experimental **do not merge**

Curious what people think, especially @czue