def GetServiceObj(self,servicename):
        """Given a service name string, returns
        the object that corresponds to the service"""
        for sobj in self.services:
            if sobj.GetName().lower()==servicename.lower():
                return sobj

        return None
def GetServiceObj ( self , servicename ) : for sobj in self . services : if sobj . GetName ( ) . lower ( ) == servicename . lower ( ) : return sobj return None
Given a service name string, returns
        the object that corresponds to the service