text: import logging
  import os
  from ConfigParser import ConfigParser
  
  class Context:
  
      def __init__(self, db, logger, arg_namespace):
          self.db = db
          self.log = logger
          self.log.debug = logging.debug
          self.localip = None
  
          self.conf = ConfigParser()
          self.conf.read(os.path.expanduser('~/.cme/cme.conf'))
  
          for key, value in vars(arg_namespace).iteritems():
              setattr(self, key, value)