https://tl.from-locals.com/python-bit-operation/