<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add(self, *args, **kwargs):
 """ Add new mapping from args and kwargs 'mymod.handler' :param args: str, Mapping, module or obj :param kwargs: operationId='handler' or operationId=handler """

        for arg in args:
            if isinstance(arg, str):
                self._operations.append(self._from_str(arg))
            else:
                self._operations.append(arg)
        if kwargs:
            self._operations.append(kwargs)