Fixed some small errors in xor.py.