Apparently I never tested logging.

now properly writes the log in python2 and python3, outputs communications and start/end times to a tempfile in the TMPDIR