python lib: decode the sorted values before unpickling them.
Merge pull request #498 from pooya/develop

python lib: avoid decoding the python object.