old_contents: # coding=utf-8
  from __future__ import absolute_import, division, print_function, \
      unicode_literals
  
  from typing import Any, Dict
  
  from babel.dates import LOCALTZ
  from flask import Flask
  from werkzeug.datastructures import ImmutableDict
  
  from abilian.web.action import Endpoint
  
  default_config = dict(Flask.default_config)  # type: Dict[str, Any]
  default_config.update(
      # Generic Flask
      TEMPLATE_DEBUG=False,
      CSRF_ENABLED=True,
      # Babel
      BABEL_ACCEPT_LANGUAGES=["en"],
      DEFAULT_COUNTRY=None,
      # Celery
      CELERYD_MAX_TASKS_PER_CHILD=1000,
      CELERY_ACCEPT_CONTENT=["pickle", "json", "msgpack", "yaml"],
      CELERY_TIMEZONE=LOCALTZ,
      # Sentry
      SENTRY_SDK_URL="https://browser.sentry-cdn.com/4.5.3/bundle.min.js",
      # SQLAlchemy
      SQLALCHEMY_POOL_RECYCLE=1800,  # 30min. default value in flask_sa is None
      SQLALCHEMY_TRACK_MODIFICATIONS=False,
      # Abilian-specific
      PRIVATE_SITE=False,
      PLUGINS=(),
      ADMIN_PANELS=(
          "abilian.web.admin.panels.dashboard.DashboardPanel",
          "abilian.web.admin.panels.audit.AuditPanel",
          "abilian.web.admin.panels.login_sessions.LoginSessionsPanel",
          "abilian.web.admin.panels.settings.SettingsPanel",
          "abilian.web.admin.panels.users.UsersPanel",
          "abilian.web.admin.panels.groups.GroupsPanel",
          "abilian.web.admin.panels.sysinfo.SysinfoPanel",
          "abilian.web.admin.panels.impersonate.ImpersonatePanel",
          "abilian.services.vocabularies.admin.VocabularyPanel",
          "abilian.web.tags.admin.TagPanel",
      ),
      LOGO_URL=Endpoint("abilian_static", filename="img/logo-abilian-32x32.png"),
      ABILIAN_UPSTREAM_INFO_ENABLED=False,  # upstream info extension
      TRACKING_CODE_SNIPPET="",  # tracking code to insert before </body>
      MAIL_ADDRESS_TAG_CHAR=None,
  )
  default_config = ImmutableDict(default_config)
  
new_contents: # coding=utf-8
  from typing import Any, Dict
  
  from babel.dates import LOCALTZ
  from flask import Flask
  from werkzeug.datastructures import ImmutableDict
  
  from abilian.web.action import Endpoint
  
  
  class DefaultConfig:
      # Generic Flask
      TEMPLATE_DEBUG = False
      # Security
      CSRF_ENABLED = True
      SESSION_COOKIE_SECURE = True
      # Babel
      BABEL_ACCEPT_LANGUAGES = ["en"]
      DEFAULT_COUNTRY = None
      # Celery
      CELERYD_MAX_TASKS_PER_CHILD = 1000
      CELERY_ACCEPT_CONTENT = ["pickle", "json", "msgpack", "yaml"]
      CELERY_TIMEZONE = LOCALTZ
      # Sentry
      SENTRY_SDK_URL = "https://browser.sentry-cdn.com/4.5.3/bundle.min.js"
      # SQLAlchemy
      SQLALCHEMY_POOL_RECYCLE = 1800  # 30min. default value in flask_sa is None
      SQLALCHEMY_TRACK_MODIFICATIONS = False
      # Abilian-specific
      PRIVATE_SITE = False
      PLUGINS = ()
      ADMIN_PANELS = (
          "abilian.web.admin.panels.dashboard.DashboardPanel",
          "abilian.web.admin.panels.audit.AuditPanel",
          "abilian.web.admin.panels.login_sessions.LoginSessionsPanel",
          "abilian.web.admin.panels.settings.SettingsPanel",
          "abilian.web.admin.panels.users.UsersPanel",
          "abilian.web.admin.panels.groups.GroupsPanel",
          "abilian.web.admin.panels.sysinfo.SysinfoPanel",
          "abilian.web.admin.panels.impersonate.ImpersonatePanel",
          "abilian.services.vocabularies.admin.VocabularyPanel",
          "abilian.web.tags.admin.TagPanel",
      )
      LOGO_URL = Endpoint("abilian_static", filename="img/logo-abilian-32x32.png")
      ABILIAN_UPSTREAM_INFO_ENABLED = False  # upstream info extension
      TRACKING_CODE_SNIPPET = ""  # tracking code to insert before </body>
      MAIL_ADDRESS_TAG_CHAR = None
  
  
  default_config = dict(Flask.default_config)  # type: Dict[str, Any]
  default_config.update(vars(DefaultConfig))
  default_config = ImmutableDict(default_config)
  
subject: Make cookies secure + better looking code.