Some minor improvements to _diff_tree.c:

- Simplify string handling
- Use PyErr_NoMemory()
Fix unnecessary incref of Py_False.