Print bitwise OR operation in python