python configure logging to file