if type(req.args) is dict:
        output_file = req.args.get("output", None)
    else:
        output_file = req.args[0]