def __init__(self, *blocked_modules):
self._blocked_modules = blocked_modules<EOL>for module in blocked_modules:<EOL><INDENT>for item in [key for key in sys.modules.keys()]:<EOL><INDENT>if item.split('<STR_LIT:.>')[<NUM_LIT:0>] == module:<EOL><INDENT>del sys.modules[item]<EOL><DEDENT><DEDENT><DEDENT>
Block specific modules.