I was able to convert binary with the LSB on the left to decimal in python but I\'m struggling for the other way.