def split_field_action(s):
    if '__' in s:
        return s.rsplit('__', 1)
    return s, None
Takes a string and splits it into field and action
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/__init__.py/split_field_action