def normalize_dates(myfunc):
    def inner_func(*args, **kwargs):
        for k, v in kwargs.iteritems():
            res = [True for s in ["after", "before", "on"] if k in s]
            if len(res):
                kwargs[k] = parse_date(v)
        return myfunc(*args, **kwargs)
    return inner_func
dataset/ETHPy150Open twilio/howtos/intercom/twilio/rest/resources.py/normalize_dates/swapped operands of `in`