finished xor.py