Also, the project was build on top the vtkweb template that uses twisted (see web-project-templates/vtk_override_protocols.py at master · Kitware/web-project-templates · GitHub)
Maybe that is a source of the issue as flushing of print did not fix it.
Best regards,
Evgeniya