Refactor error handling, do not handle virtualenv/pip errors. Try to fix tests on Travis CI.