refactoring and pip with venv