Implement Xor Function In Python