Add support in pypy, python 2.7 and 2.6