Update gen.py

Docs. Missing closing parenthesis on example.
Merge pull request #949 from Lardjo/patch-1

Added closing parenthesis