logical and bitwise operators in python