def print_diff_strings(orig, new): for line in difflib.context_diff(orig.splitlines(), new.splitlines()): print(line)