add to nntpchan.json hooks section:
{ "name": "pyfront", "exec": "/path/to/frontend.py" }
add this to nntpchan.ini
... [frontend] type=exec exec=/path/to/frontend.py