Matched GetValueLength to python version for now.