print a list of languages and exit

def print_languages_and_exit(lst, status=1, header=True):
    """print a list of languages and exit"""
    if header:
        print("Available languages:")
    for lg in lst:
        print("- %s" % lg)
    sys.exit(status)