more Hex to Decimal

Python2, Scala