python2 bugfix