You have a Python program that displays urllib3 (or some other type) of message to the screen. You do not want them echoed there cluttering the screen. You want them permanently stored in a log file. How do you get a Python program to write to a log file?
Use these three lines, but replace "contint" with the name of your choice:
logging.basicConfig(filename='contint.log', filemode='a', level=logging.DEBUG)