old_contents: import daemon
  
  from espresso.main import config
  from espresso.main import robot
  
  if config.has_key('daemonized'):
      if config['daemonized']:
          with daemon.DaemonContext():
              robot.brew()
  
  robot.brew()
  
new_contents: import daemon
  
  from espresso.main import config
  from espresso.main import robot
  
  if 'daemonized' in config:
      if config['daemonized']:
          with daemon.DaemonContext():
              robot.brew()
  
  robot.brew()
  
subject: Convert has_key to in in run.py