def print_message(message):
    print message


def print_filelist(header, filelist, footer=None):
    print header

    for line in filelist:
        print "  {}".format(line)

    if footer:
        print footer


def print_filelists(new_files, changed_files, missing_files):
    if new_files:
        print_filelist("Added files (not in index):", new_files)

    if changed_files:
        print_filelist("Changed files (hash differs from index):", changed_files)

    if missing_files:
        print_filelist("Missing files:", missing_files)

    if not any([new_files, changed_files, missing_files]):
        print_message("Index is up-to-date (no changes)")

@@ -1,16 +1,30 @@
+import click%0A%0A
 def print_messag
@@ -114,20 +114,26 @@
     
-print 
+click.echo(
 header
+)
 %0A%0A  
@@ -164,22 +164,27 @@
         
-print 
+click.echo(
 %22  %7B%7D%22.f
@@ -194,16 +194,17 @@
 at(line)
+)
 %0A%0A    if
@@ -224,20 +224,26 @@
     
-print 
+click.echo(
 footer
+)
 %0A%0A%0Ad

Use click.echo() instead of print in output module