old_contents: import configparser
  from fava.api import BeancountReportAPI
  from fava.application import app as application
  
  application.beancount_file = '/home/fava/test.bean'
  application.filter_year = None
  application.filter_tag = None
  application.api = BeancountReportAPI(application.beancount_file)
  
  application.user_config = configparser.ConfigParser()
  user_config_defaults_file = '/home/fava/default-settings.conf'
  application.user_config.readfp(open(user_config_defaults_file))
  application.user_config['fava']['file_defaults'] = user_config_defaults_file
  application.user_config['fava']['file_user'] = ''
  
new_contents: from fava.application import app as application
  from fava.application import load_file, load_settings
  
  application.config['BEANCOUNT_FILE'] = '/home/fava/test.bean'
  application.config['USER_SETTINGS'] = None
  
  load_settings()
  load_file()
  
subject: Fix script for fava.pythonanywhere.com