Some py3 fixes for tw2.forms.