Implement Xor Function In Python With Parameters