def split_company_name_notes(name):
 name = name.strip()
 notes = u''
 if name.endswith(')'):
  fpidx = name.find('(')
  if (fpidx != (-1)):
   notes = name[fpidx:]
   name = name[:fpidx].rstrip()
 return (name, notes)

def split_company_name_notes ( name ) : name = name . strip ( ) notes = u'' if name . endswith ( ')' ) : fpidx = name . find ( '(' ) if ( fpidx != ( - 1 ) ) : notes = name [ fpidx : ] name = name [ : fpidx ] . rstrip ( ) return ( name , notes )
return two strings .