Update checkillegalcommands.py.