Light binary to decimal converter written in Python