Indent the solve code produced by fzn2py so that it does not get run when the module is imported.