code: def _py_ex_argtype(executable):
      
      result = []
      for p in executable.ordered_parameters:
          atypes = p.argtypes
          if atypes is not None:
              result.extend(p.argtypes)
          else:
              print(("No argtypes for: {}".format(p.definition())))
  
      if type(executable).__name__ == "Function":
          result.extend(executable.argtypes)        
              
      return result
docs: Returns the code to create the argtype to assign to the methods argtypes
      attribute.