I think the to(object): thing comes from pde2py, but please correct it here.