old_contents: # coding: UTF-8
  import os
  
  
  def load_config():
      """Load config."""
      mode = os.environ.get('MODE')
      try:
          if mode == 'PRODUCTION':
              from .production import ProductionConfig
              return ProductionConfig
          elif mode == 'TESTING':
              from .testing import TestingConfig
              return TestingConfig
          else:
              from .development import DevelopmentConfig
              return DevelopmentConfig
      except ImportError, e:
          from .default import Config
          return Config
new_contents: # coding: UTF-8
  import os
  
  
  def load_config():
      """Load config."""
      mode = os.environ.get('MODE')
      try:
          if mode == 'PRODUCTION':
              from .production import ProductionConfig
              return ProductionConfig
          elif mode == 'TESTING':
              from .testing import TestingConfig
              return TestingConfig
          else:
              from .development import DevelopmentConfig
              return DevelopmentConfig
      except ImportError:
          from .default import Config
          return Config
subject: Update except statements to support Python3.