Added Python 3 and PyPy support. (This was commited by aodag, thank you very much!)