def handle_stats(name, obj):
    """
    Stats object handler.
    :param name: Unused String
    :param obj: GitPython Stats
    :return: Dictionary of attributes.
    """
    return {'total_deletions': obj.total['deletions'], 'total_insertions':
        obj.total['insertions'], 'total_lines': obj.total['lines'],
        'total_files': obj.total['files'], 'changes': obj.files}
