Update assertfilegen.py

Fix errors