added xor function to misc.py as jtag.py was failing to import it

It seems that JTAG is broken because of this missing function. The version on my hard drive had it.