allow to be used with python2.7