def validate_sound(sound):
 if (not sound):
  return None
 if (sound.lower() in [s.lower() for s in SOUNDS]):
  return sound.title()
 return None

def validate_sound ( sound ) : if ( not sound ) : return None if ( sound . lower ( ) in [ s . lower ( ) for s in SOUNDS ] ) : return sound . title ( ) return None
send a message to a pushover user or group .