Added support for Python3.

Included suport for nosetests.