Fix deprecated unittest methods.
Added explicit support for Python 3.4 and PyPy