use len(fi.args) instead of nargs in ode.py