def __init__(self, template, constraints):
        self.template = template
        self.gas_template = FIX_GAS_RE.sub(lambda m: ".{}{}".format(m.group(2), m.group(1)), template)
        self.constraints = constraints
        self.args = parse_template(template)