Interate copy of list using items[:]
logging.exception
pip list
datetime.datetime.now()
Format string, join list or append string.
Use re.search