def make_keyword_extractor(method):

    args, _1, _2, defs = inspect.getargspec(method)
    key_args = args[-len(defs or []):]
    def extractor(keys):
        new = {}
        for a in key_args:
            if a in keys:
                new[a] = keys[a]
                del keys[a]
        return new
    return extractor
Parses each email message
dataset/ETHPy150Open arximboldi/cooper/cooper/cooper.py/make_keyword_extractor--crossover with--dataset/ETHPy150Open codekoala/django-articles/articles/management/commands/check_for_articles_from_email.py/MailboxHandler.parse_email