yaml don't need quote
fix travis ci tests
py2 compat fix
put the compat in _compat