As for logging to a file, you don't need to worry about that. The python logging facility handles all that, by default it just logs to the console (so similar to the print statement). If the user needs to log to a file, or syslog, or remote logging, code can easily be added to handle this using the python logging facility.