make ajax test compatible with py3