python unimport code example
Example: unimport library python
# Import your library
import time
# Remove your library (change as needed)
# You'll lose access to it
# Python will still keep a copy around in the cache though
del time
# If you want to reload it (> Python 3.4):
import importlib, time
importlib.reload(time)