library dir encoding for py3