Binairy to Decimal converter in Python