adjust ldb config for py3 build