TS documentation generation in Python