Try adding the following line to your script:
Code:
viz.directormode(viz.DIRECTOR_FAST)
This essentially tells Vizard to allow Python threads to run while rendering the scene, which should give more time for your Python thread to run.
If this doesn't help, then there might be some other issue with your code. In this case it would help if you posted some of your code.