Add python virtualenv to gallois theme

Indication of virtualenv is not presented in gallois theme. So I've fixed this and made some refactorings too. I hope it will be helpful to others so please add it to upstream.

P.S. There are no style changes in theme