fix config on python2