fixed configuration bug in py2