old_contents: from dumptruck_web import sqlite_api
  
  def main():
      # Settings
      # import demjson
      # DB = demjson.decode(open('~/sw.json').read())['database']
  
      return sqlite_api('dumptruck.db')
  
  if __name__ == "__main__":
      http = main()
      print http
  
new_contents: import os
  from dumptruck_web import sqlite_api
  
  def main():
      # Settings
      import demjson
      sw_json = open(os.path.expanduser('~/sw.json')).read()
      db = demjson.decode(sw_json)['database']
  
      return sqlite_api(db)
  
  if __name__ == "__main__":
      http = main()
      print http
  
subject: read the json file