Use command `del`
example:
>>>> import os
>>>> del os
>>>> os.access("dd",0)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
NameError: name 'os' is not defined
but the deleted module still occupies memory, thus not been able to unload.