python 2.7 config migration