def __init__(self, document, exclude=('_source', '_fields')):
        d = dict((k[1:] if k.startswith('_') else k, v) for (k, v) in iteritems(document) if exclude not in k)
        if 'type' in d:
            # make sure we are consistent everywhere in python
            d['doc_type'] = d.pop('type')
        super(ResultMeta, self).__init__(d)
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/elasticsearch_dsl/result.py/ResultMeta.__init__/swapped operands of `not in`