added support for python 3, pypy, pypy3 and updated the documentation