def decorate(thing):
    if isinstance(thing, Redditor):
        created = datetime.utcfromtimestamp(thing.created_utc)
        now = datetime.utcnow()
        thing.age = (now - created).days
    elif isinstance(thing, Comment):
        decorate(thing.author)
    elif isinstance(thing, Submission):
        decorate(thing.author)
dataset/ETHPy150Open rasher/reddit-modbot/modbot.py/decorate/original