old_contents: from os import getenv
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_redis import Redis
  from flask_runner import Manager
  from flask_cors import CORS, cross_origin
  from flask.ext.cache import Cache
  from app.helpers.blueprints_helper import register_blueprints
  from app.helpers.json_encoder_helper import ApiJSONEncoder
  
  flask = Flask(__name__)
  flask.config.from_object('config.'+ getenv('ENV', 'Development'))
  flask.json_encoder = ApiJSONEncoder
  
  db = SQLAlchemy(flask)
  redis = Redis(flask)
  manager = Manager(flask)
  cors = CORS(flask, resources={"*": {"origins": "*"}})
  cache = Cache(flask, config={
      'CACHE_TYPE': 'redis',
      'CACHE_KEY_PREFIX': 'dvapi',
      'CACHE_DEFAULT_TIMEOUT': 60000000,
  })
  
  register_blueprints(flask, 'apis')
  
new_contents: from os import getenv
  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  from flask_redis import Redis
  from flask_runner import Manager
  from flask_cors import CORS, cross_origin
  from flask.ext.cache import Cache
  from app.helpers.blueprints_helper import register_blueprints
  from app.helpers.json_encoder_helper import ApiJSONEncoder
  
  flask = Flask(__name__)
  flask.config.from_object('config.'+ getenv('ENV', 'Development'))
  flask.json_encoder = ApiJSONEncoder
  
  db = SQLAlchemy(flask)
  redis = Redis(flask)
  manager = Manager(flask)
  cors = CORS(flask)
  cache = Cache(flask, config={
      'CACHE_TYPE': 'redis',
      'CACHE_KEY_PREFIX': 'dvapi',
      'CACHE_DEFAULT_TIMEOUT': 60000000,
  })
  
  register_blueprints(flask, 'apis')
  
subject: Remove unnecessary cors config