How To Perform Xor Operation In Python