Python Binary To Decimal Function In Matlab