def print_notices(notice_origin, origin_pfx, notice_pfx):
    """Given a NoticeOrigin object with a prefix (like a series of tabs)
    for the origin and the notice messages, return the notes"""
    notes = origin_pfx + notice_origin.origin_str + ':\n'
    for notice in notice_origin.notices:
        notes = (notes + notice_pfx + notice.level + ': ' + notice.message +
            '\n')
    return notes
