def string_from_module(module, variable=None, default=None):
 val = variable_from_module(module, variable=variable, default=default)
 if val:
  if variable:
   return val
  else:
   result = [v for v in make_iter(val) if isinstance(v, basestring)]
   return (result if result else default)
 return default

def string_from_module ( module , variable = None , default = None ) : val = variable_from_module ( module , variable = variable , default = default ) if val : if variable : return val else : result = [ v for v in make_iter ( val ) if isinstance ( v , basestring ) ] return ( result if result else default ) return default
this is a wrapper for variable_from_module that requires return value to be a string to pass .