def ping(host=None, port=None, db=None, password=None):
 server = _connect(host, port, db, password)
 try:
  return server.ping()
 except redis.ConnectionError:
  return False

def ping ( host = None , port = None , db = None , password = None ) : server = _connect ( host , port , db , password ) try : return server . ping ( ) except redis . ConnectionError : return False
a test to ensure the gnome module is loaded cli example: .