support for python3.3 and python 2.7