import os
import sys

try:
    from flask import Flask
    import flask_login
    from flask_restless import APIManager
    from flask_sqlalchemy import SQLAlchemy
    import requests
except ImportError:
    INTERP = "venv/bin/python"

    if os.path.relpath(sys.executable, os.getcwd()) != INTERP:
        try:
            os.execl(INTERP, INTERP, *sys.argv)
        except OSError:
            sys.exit("Could not find virtual environment. Run `:~$ ./setup.sh`")
    else:
        sys.exit("Could not find requirements. Are they all included in requirements.txt? Run `:~$ ./setup.sh`")


application = Flask(__name__)

@application.route("/")
def index():
    return "Hello, world!"

import os
import sys

try:
    from flask import Flask, render_template, send_file, Response    
    import requests
except ImportError:
    INTERP = "venv/bin/python"

    if os.path.relpath(sys.executable, os.getcwd()) != INTERP:
        try:
            os.execl(INTERP, INTERP, *sys.argv)
        except OSError:
            sys.exit("Could not find virtual environment. Run `:~$ ./setup.sh`")
    else:
        sys.exit("Could not find requirements. Are they all included in requirements.txt? Run `:~$ ./setup.sh`")


application = Flask(__name__)

@application.route("/")
def index():
    return "Hello, world!"

--- 
+++ 
@@ -2,7 +2,10 @@
 import sys
 
 try:
-    from flask import Flask, render_template, send_file, Response    
+    from flask import Flask
+    import flask_login
+    from flask_restless import APIManager
+    from flask_sqlalchemy import SQLAlchemy
     import requests
 except ImportError:
     INTERP = "venv/bin/python"
Add more imports for further functionality

`flask_login`, `flask_restless`, `flask_sqlalchemy`