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