Attempt to fix Travis errors for Python 3