Update gen.py

Docs. Missing closing parenthesis on example.