Python 3.4 for travis

And fix tests for Python 3.4 (workaround for http://bugs.python.org/issue21750)