still fixing compatibility with python2.6