Update gen.py to use variables defined on hooks.py
Update virtualenv to 1.9.1 and distribute to 0.6.65