def METHOD_NAME(script_path, constant_name, bracket_type='{'):
    if bracket_type == '{':
        b_open = '{'
        b_close = '}'
    elif bracket_type =='[':
        b_open = '['
        b_close = ']'
    else:
        raise Exception('Wrong bracket_type! Use { or [')
    with open(script_path) as f:
        args = ''
        for line in f:
            if _is_comment_line(line):
                continue
            if constant_name in line:
                open_count = line.count(b_open)
                start = line.find(b_open)
                close_count = line.count(b_close)
                if start == -1:
                    line = f.readline()
                    start = 0
                    open_count = line.count(b_open)
                    close_count = line.count(b_close)
                args += line[start:]
                while open_count != close_count:
                    line = f.readline()
                    comment = line.find('#')
                    if comment != -1:
                        line = line[:comment+1] #Remove comments
                    args += line
                    open_count += line.count(b_open)
                    close_count += line.count(b_close)
                # args = args.replace('\'','\"') #Make it json parsable
                arg_dict = ast.literal_eval(args)
                return arg_dict
        #No arguments for this script
        return None