def buildServiceManager(jid, password, strport):
 svc = ServiceManager(jid, password)
 client_svc = jstrports.client(strport, svc.getFactory())
 client_svc.setServiceParent(svc)
 return svc

def buildServiceManager ( jid , password , strport ) : svc = ServiceManager ( jid , password ) client_svc = jstrports . client ( strport , svc . getFactory ( ) ) client_svc . setServiceParent ( svc ) return svc
constructs a pre-built l{servicemanager} .