Python3 test fixes for Travis