old_contents: import imp
  import json
  import os
  import sys
  
  from yoconfigurator.dicts import DotDict, MissingValue
  
  
  class DetectMissingEncoder(json.JSONEncoder):
      def default(self, obj):
          if isinstance(obj, MissingValue):
              raise ValueError("Missing Value found in config: %s" % obj.name)
          return super(DetectMissingEncoder, self).default(obj)
  
  
  def _write(content, name):
      with open(name, 'w') as f:
          json.dump(
              content, f, indent=2, cls=DetectMissingEncoder,
              separators=(',', ': '))
  
  
  def write_configs(app_dir, configs):
      """Write configurations to the applicaiton directory."""
      for config in configs:
          content = config[0]
          name = os.path.join(app_dir, config[1])
          _write(content, name)
  
  
  def read_config(app_dir):
      path = os.path.join(app_dir, 'configuration.json')
      with open(path, 'r') as f:
          return DotDict(json.load(f))
  
  
  def get_config_module(config_pathname):
      """Imports the config file to yoconfigurator.configs.<module_name>."""
      configs_mod = 'yoconfigurator.configs'
      if configs_mod not in sys.modules:
          sys.modules[configs_mod] = imp.new_module(configs_mod)
      module_name = os.path.basename(config_pathname).rsplit('.', 1)[-1]
      module_name = configs_mod + '.' + module_name
      return imp.load_source(module_name, config_pathname)
  
new_contents: import imp
  import json
  import os
  import sys
  
  from yoconfigurator.dicts import DotDict, MissingValue
  
  
  class DetectMissingEncoder(json.JSONEncoder):
      def default(self, obj):
          if isinstance(obj, MissingValue):
              raise ValueError("Missing Value found in config: %s" % obj.name)
          return super(DetectMissingEncoder, self).default(obj)
  
  
  def _write(content, name):
      with open(name, 'w') as f:
          json.dump(
              content, f, indent=2, cls=DetectMissingEncoder,
              separators=(',', ': '))
  
  
  def write_configs(app_dir, configs):
      """Write configurations to the applicaiton directory."""
      for config in configs:
          content = config[0]
          name = os.path.join(app_dir, config[1])
          _write(content, name)
  
  
  def read_config(app_dir):
      path = os.path.join(app_dir, 'configuration.json')
      with open(path, 'r') as f:
          return DotDict(json.load(f))
  
  
  def get_config_module(config_pathname):
      """Imports the config file to yoconfigurator.configs.<config_basename>."""
      configs_mod = 'yoconfigurator.configs'
      if configs_mod not in sys.modules:
          sys.modules[configs_mod] = imp.new_module(configs_mod)
      module_name = os.path.basename(config_pathname).rsplit('.', 1)[-1]
      module_name = configs_mod + '.' + module_name
      return imp.load_source(module_name, config_pathname)
  
subject: Update docstring for get_config_module