fixed for python2