def invert_byte(value):
return <NUM_LIT:2> ** <NUM_LIT:8> + ~value<EOL>
>>> '{0:08b}'.format(invert_byte(int('00001000',2)))
'11110111'

>>> '{0:08b}'.format(invert_byte(int('10101010',2)))
'01010101'

>>> '{0:08b}'.format(invert_byte(int('00110011',2)))
'11001100'