python configure logging to stdout and file