//example of importing functions
from otherFile import function //importing function method from the file otherFile.py
@app.route("/")
@app.route("/index")
def index():
baz = function() //the function imported from your file otherFile.py
if __name__ == '__main__':
app.run(debug=True)