def add_glob_to_array(_bridgemems):
 result = []
 if isinstance(_bridgemems, list):
  for _entry in _bridgemems:
   if re.search('-', _entry):
    _entry = ('glob ' + _entry)
   result.append(_entry)
  return ' '.join(result)
 return _bridgemems

def add_glob_to_array ( _bridgemems ) : result = [ ] if isinstance ( _bridgemems , list ) : for _entry in _bridgemems : if re . search ( '-' , _entry ) : _entry = ( 'glob ' + _entry ) result . append ( _entry ) return ' ' . join ( result ) return _bridgemems
goes through each bond member if it sees a dash add glob before it .