correcting formencode for compatibility with python 3