Solution
from flask import Blueprint
dbscan_handlers = Blueprint('dbscan_handlers', __name__, template_folder='views')
# Your routes (in the dbscan.py file) will then be something like this
@dbscan_handlers.route('/xyz/'):
.....
@dbscan_handlers.route('/def/'):
....
from controllers.dbscan import dbscan_handlers
app.register_blueprint(dbscan_handlers)