old_contents: import os
  from flask import Flask
  from flask.ext import restful
  from flask.ext.pymongo import PyMongo
  from flask import make_response
  from bson.json_util import dumps
  
  # ----- Define MongoDB variables -----
  MONGO_URL = os.environ.get('MONGO_URL')
  if not MONGO_URL:
      MONGO_URL = "mongodb://itchix:jakarta@ds037272.mongolab.com:37272/offapi";
  
  app = Flask(__name__)
  
  app.config['MONGO_URI'] = MONGO_URL
  app.config['MONGO_DBNAME'] = 'offapi'
  mongo = PyMongo(app)
  
  # ----- Output JSON function -----
  def output_json(obj, code, headers=None):
  	headers['Access-Control-Allow-Origin'] = '*'
  	resp = make_response(dumps(obj), code)
  	resp.headers.extend(headers or {})
  	return resp
  
  DEFAULT_REPRESENTATIONS = {'application/json': output_json}
  api = restful.Api(app)
  api.representations = DEFAULT_REPRESENTATIONS
  
  # ----- Import all the WebServices -----
  import flask_rest_service.resources_products
new_contents: import os
  from flask import Flask
  from flask.ext import restful
  from flask.ext.pymongo import PyMongo
  from flask import make_response
  from bson.json_util import dumps
  
  # ----- Define MongoDB variables -----
  MONGO_URL = os.environ.get('MONGO_URL')
  if not MONGO_URL:
      MONGO_URL = "mongodb://localhost:27017/off";
  
  app = Flask(__name__)
  
  app.config['MONGO_URI'] = MONGO_URL
  app.config['MONGO_DBNAME'] = 'off'
  mongo = PyMongo(app)
  
  # ----- Output JSON function -----
  def output_json(obj, code, headers=None):
  	headers['Access-Control-Allow-Origin'] = '*'
  	resp = make_response(dumps(obj), code)
  	resp.headers.extend(headers or {})
  	return resp
  
  DEFAULT_REPRESENTATIONS = {'application/json': output_json}
  api = restful.Api(app)
  api.representations = DEFAULT_REPRESENTATIONS
  
  # ----- Import all the WebServices -----
  import flask_rest_service.resources_products
  
subject: Update __init__.py