-backward compatibility with py 2.7 (now tested with py2.7 and py3.3)