code: def _py_code_clean(lines, tab, executable):
      
      count = 0
      allparams = executable.ordered_parameters
      if type(executable).__name__ == "Function":
          allparams = allparams + [executable]
          
      for p in allparams:
          value = _py_clean(p, tab)
          if value is not None:
              count += 1
              lines.append(value)
              
      return count
docs: Appends all the code lines needed to create the result class instance and populate
      its keys with all output variables.