def _ScopesToString(scopes):
 if isinstance(scopes, types.StringTypes):
  return scopes
 else:
  return ' '.join(scopes)

def _ScopesToString ( scopes ) : if isinstance ( scopes , types . StringTypes ) : return scopes else : return ' ' . join ( scopes )
converts scope value to a string .