Fix iterator/list problems for Python 3 support
Fix str/unicode problems in Python 3
Update Travis configuration