PY3: Make skbio/db/base.py compatible with py3k