@ArtiScream Depends whether you know the length of the binary string upfront or not, then you could bit-flip by xor'ing with a known binary constant of corresponding length:
^ 0b00000000010000000001...
Alternatively, you'd probably want to
reverse the binary-digit string before converting to integer:
int('10010100100111'[::-1], 2)
. Or else just process it with a list comprehension in 10b chunks.