update some python code for ajax test "