Making config import work with python 2 & 3