Binary To Decimal Function In Python