def extract_params(message_template):
    return [parsed[1] for parsed in Formatter().parse(message_template) if parsed[1]]
Given a message template - extracts the relevant params.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/performance_sms/parser.py/extract_params