def ClientIdToHostname(client_id, token=None):
 client = OpenClient(client_id, token=token)[0]
 if (client and client.Get('Host')):
  return client.Get('Host').Summary()

def ClientIdToHostname ( client_id , token = None ) : client = OpenClient ( client_id , token = token ) [ 0 ] if ( client and client . Get ( 'Host' ) ) : return client . Get ( 'Host' ) . Summary ( )
quick helper for scripts to get a hostname from a client id .