Python Create Binary Array To Decimal