virtualenv converted to context manager