Add Python 3.4 to the list of supported versions
Fix tests for Python 3