Py3k compatibility

pr for travis