def convertDict2Attrs(self, *args, **kwargs):
        """The trick for iterable Mambu Objects comes here:

        You iterate over each element of the responded List from Mambu,
        and create a Mambu Task object for each one, initializing
        them one at a time, and changing the attrs attribute (which just
        holds a list of plain dictionaries) with a MambuTask just
        created.

        """
        for n,a in enumerate(self.attrs):
            # ok ok, I'm modifying elements of a list while iterating it. BAD PRACTICE!
            try:
                params = self.params
            except AttributeError as aerr:
                params = {}
            kwargs.update(params)
            try:
                task = self.mambutaskclass(urlfunc=None, entid=None, *args, **kwargs)
            except AttributeError as ae:
                self.mambutaskclass = MambuTask
                task = self.mambutaskclass(urlfunc=None, entid=None, *args, **kwargs)
            task.init(a, *args, **kwargs)
            self.attrs[n] = task
def convertDict2Attrs ( self , * args , ** kwargs ) : for n , a in enumerate ( self . attrs ) : try : params = self . params except AttributeError as aerr : params = { } kwargs . update ( params ) try : task = self . mambutaskclass ( urlfunc = None , entid = None , * args , ** kwargs ) except AttributeError as ae : self . mambutaskclass = MambuTask task = self . mambutaskclass ( urlfunc = None , entid = None , * args , ** kwargs ) task . init ( a , * args , ** kwargs ) self . attrs [ n ] = task
The trick for iterable Mambu Objects comes here:

        You iterate over each element of the responded List from Mambu,
        and create a Mambu Task object for each one, initializing
        them one at a time, and changing the attrs attribute (which just
        holds a list of plain dictionaries) with a MambuTask just
        created.