python2 problems fixed