Helper functions for Python virtual environments