dtoc: Updates BytesToValue() for Python 3