fixed syntax errors in rungen.py