Switched to using backported version of configparser module to help with 2/3 compatibility. Also tweaked a few things to make them work on Python 2 and 3.