def get_mems(self, type):
        """Fetch all the memories of the supplied type"""
        ret = ()
        for m in self.mems:
            if m.type == type:
                ret += (m,)

        return ret
def get_mems ( self , type ) : ret = ( ) for m in self . mems : if m . type == type : ret += ( m , ) return ret
Fetch all the memories of the supplied type