Python3 compatibility of config system