Python bitwise operators (logical product, logical OR, exclusive OR, inversion, shift) https://from-locals.com/python-bit-operation/