python: added caching of virtualenvs