update copyright year
PEP8 changes
correctly expand user's home variable, if present, in logfile path