old_contents: import os
  import json
  from jinja2 import Environment, FileSystemLoader
  from logger import Logger
  
  
  class _Settings:
  	######################
  	# init functionality
  	######################
  	def __init__(self):
  		self._config = {}
  		self._init_config()
  
  		# get the local settings to override the defaults here
  		from config import local_config
  		self._config.update(local_config.config)
  	
  	def _init_config(self):
  		# root directory for the app
  		self._config["ROOT_DIR"] = os.path.realpath(os.path.join(os.path.dirname(__file__), "../../"))
  	
  		# important directory paths
  		self._config["HTDOCS_DIR"] = os.path.join(self.ROOT_DIR, "htdocs")
  		self._config["HTDOCS_IMAGE_DIR"] = os.path.join(self.HTDOCS_DIR, "img")
  		self._config["THUMBNAIL_DIR"] = os.path.join(self.HTDOCS_IMAGE_DIR, "thumbs")
  		self._config["WSGI_DIR"] = os.path.join(self.ROOT_DIR, "wsgi")
  		self._config["CONFIG_DIR"] = os.path.join(self.WSGI_DIR, "config")
  
  		# Root path to where your files are stored. You will need to define this
  		self._config["BASE_FS_PATH"] = None
  		
  		# connection information for the database
  		self._config["DATABASE"] = {}
  	
  		# set up the template parameters
  		self._config["TEMPLATE_DIRS"] = [
  			os.path.join(self.WSGI_DIR, "templates")
  		]
  		self._config["TEMPLATE_ENV"] = Environment(loader=FileSystemLoader(self.TEMPLATE_DIRS))
  
  		# main app url. You will need to define this
  		self._config["BASE_URL"] = None
  		
  		# identify various routes with callbacks which can be taken
  		self._config["ROUTES"] = [
  			(r"^css/?[_a-z]+\.css$", "css"),
  			(r"photos/big/.*$", "photo.get_large_image"),
  			(r"photos/?.*$", "photo"),
  			(r"^mark/?$", "photo.get_marked_photos"),
  			(r"^mark/update/?$", "photo.update_mark"),
  			(r"^stats/?$", "stats"),
  			(r"^/?$", "index")
  		]
  		
  		# important files
  		self._config["MARK_FILE"] = os.path.join(self.HTDOCS_DIR, "user_input", "marked_photos.txt"),
  		
  		self._config["SUPPORTED_IMG_EXTENSIONS"] = [
  			"jpeg",
  			"jpg",
  			#"mov",
  			#"avi",
  			"bmp",
  			"png",
  			"gif",
  			"tiff",
  			#"mp4",
  			#"nef"
  		]
  
  		self._config["DEFAULT_PER_PAGE"] = 20
  
  		self._config["SITE_NAME"] = "Photo Browser"
  
  	
  	def __getattr__(self, name):
  		if name not in self._config.keys():
  			return None
  		return self._config[name]
  
  Settings = _Settings()
  
new_contents: import os
  import json
  from jinja2 import Environment, FileSystemLoader
  from logger import Logger
  
  
  class _Settings:
  	######################
  	# init functionality
  	######################
  	def __init__(self):
  		self._config = {}
  		self._init_config()
  
  		# get the local settings to override the defaults here
  		from config import local_config
  		self._config.update(local_config.config)
  	
  	def _init_config(self):
  		# root directory for the app
  		self._config["ROOT_DIR"] = os.path.realpath(os.path.join(os.path.dirname(__file__), "../../"))
  	
  		# important directory paths
  		self._config["HTDOCS_DIR"] = os.path.join(self.ROOT_DIR, "htdocs")
  		self._config["HTDOCS_IMAGE_DIR"] = os.path.join(self.HTDOCS_DIR, "img")
  		self._config["THUMBNAIL_DIR"] = os.path.join(self.HTDOCS_IMAGE_DIR, "thumbs")
  		self._config["WSGI_DIR"] = os.path.join(self.ROOT_DIR, "wsgi")
  		self._config["CONFIG_DIR"] = os.path.join(self.WSGI_DIR, "config")
  
  		# Root path to where your files are stored. You will need to define this
  		self._config["BASE_FS_PATH"] = None
  		
  		# connection information for the database
  		self._config["DATABASE"] = {}
  	
  		# set up the template parameters
  		self._config["TEMPLATE_DIRS"] = [
  			os.path.join(self.WSGI_DIR, "templates")
  		]
  		self._config["TEMPLATE_ENV"] = Environment(loader=FileSystemLoader(self.TEMPLATE_DIRS))
  
  		# main app url. You will need to define this
  		self._config["BASE_URL"] = None
  		
  		# identify various routes with callbacks which can be taken
  		self._config["ROUTES"] = [
  			(r"^css/?[_a-z]+\.css$", "css"),
  			(r"photos/big/.*$", "photo.get_large_image"),
  			(r"photos/?.*$", "photo"),
  			(r"^mark/?$", "photo.get_marked_photos"),
  			(r"^mark/update/?$", "photo.update_mark"),
  			(r"^stats/?$", "stats"),
  			(r"^/?$", "index")
  		]
  		
  		# important files
  		self._config["MARK_FILE"] = os.path.join(self.HTDOCS_DIR, "user_input", "marked_photos.txt")
  		
  		self._config["SUPPORTED_IMG_EXTENSIONS"] = [
  			"jpeg",
  			"jpg",
  			#"mov",
  			#"avi",
  			"bmp",
  			"png",
  			"gif",
  			"tiff",
  			#"mp4",
  			#"nef"
  		]
  
  		self._config["DEFAULT_PER_PAGE"] = 20
  
  		self._config["SITE_NAME"] = "Photo Browser"
  
  	
  	def __getattr__(self, name):
  		if name not in self._config.keys():
  			return None
  		return self._config[name]
  
  Settings = _Settings()
  
subject: fix the tuple issue