assummed even number of fields (not true in 2.9.4)
Merge pull request #7 from ndegroot/master

assumed even number of fields (not true in Web2Py 2.9.4)