def get_entity_from_protobuf(data):
    if not data:
        return None
    elif isinstance(data, str):
        return db.model_from_protobuf(data)
    elif isinstance(data, dict):
        return dict((k, db.model_from_protobuf(v)) for k, v in data.iteritems())
    else:
        return [db.model_from_protobuf(x) for x in data]
Strip and de-quote CTCP messages.
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/db/__init__.py/get_entity_from_protobuf--crossover with--dataset/ETHPy150Open Shizmob/pydle/pydle/features/ctcp.py/parse_ctcp