def resolve_labels(model_label):
    """
    Seperate model_label into parts.
    Returns dictionary with app, model and app_model strings.
    """
    labels = {}
    labels['app'] = model_label.split('.')[0]
    labels['model'] = model_label.split('.')[-1]
    labels['app_model'] = '%s.%s' % (labels['app'], labels['model'])
    return labels
