attempts to create numerical solution framework in f2py