def _AddPrefix(element, prefix):
 if (element is None):
  return element
 if (isinstance(element, list) or isinstance(element, tuple)):
  return [(prefix + e) for e in element]
 else:
  return (prefix + element)

def _AddPrefix ( element , prefix ) : if ( element is None ) : return element if ( isinstance ( element , list ) or isinstance ( element , tuple ) ) : return [ ( prefix + e ) for e in element ] else : return ( prefix + element )
add |prefix| to |element| or each subelement if element is iterable .