def validaddr(string_):
 if ('/' in string_):
  return string_
 else:
  return validip(string_)

def validaddr ( string_ ) : if ( '/' in string_ ) : return string_ else : return validip ( string_ )
returns either or "/path/to/socket" from string_ .