def add_import(self, modname, fromlist=None):
        # Refuse to report pyjslib as imported module
        if modname == 'pyjslib':
            return
        if fromlist is None:
            fromlist = [None]
        fl = self.imported_modules.get(modname, None)
        if fl is None:
            self.imported_modules[modname] = fromlist
            for f in fromlist:
                if f is not None:
                    self.add_import("%s.%s" % (modname, f))
        else:
            for f in fromlist:
                if not fl in f:
                    fl.append(f)
                    if f is not None:
                        self.add_import("%s.%s" % (modname, f))
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.add_import/swapped operands of `in`