proper exit code based on tests result
fixing py3 bug
changing travis conf