old_contents: #!/usr/bin/ipython -i
  # -*- coding: utf-8 -*-
  
  
  import os
  
  import bson
  from paste.deploy import loadapp
  import pymongo
  
  
  from openchordcharts.model.account import Account
  from openchordcharts.model.chart import Chart
  
  
  base_dir = os.path.abspath(os.path.dirname(__file__))
  conf_file_name = 'production.ini' if os.path.exists('production.ini') else 'development.ini'
  conf_file_path = os.path.join(base_dir, conf_file_name)
  app = loadapp(u'config:{0}#main'.format(conf_file_path))
  db = app.ctx.db
  ObjectId = bson.ObjectId
  
new_contents: #!/usr/bin/env python
  # -*- coding: utf-8 -*-
  
  
  import os
  
  import bson
  from paste.deploy import loadapp
  import pymongo
  
  
  from openchordcharts.model.account import Account
  from openchordcharts.model.chart import Chart
  
  
  base_dir = os.path.abspath(os.path.dirname(__file__))
  conf_file_name = 'production.ini' if os.path.exists('production.ini') else 'development.ini'
  conf_file_path = os.path.join(base_dir, conf_file_name)
  app = loadapp(u'config:{0}#main'.format(conf_file_path))
  db = app.ctx.db
  ObjectId = bson.ObjectId
  
subject: Fix mongoshell shebang.