old_contents: #!/usr/bin/env python3
  """Delete all unnecessary files and directories in repository
  """
  
  #------------------------------------------------------------------------------
  # Py2C - A Python to C++ compiler
  # Copyright (C) 2014 Pradyun S. Gedam
  #------------------------------------------------------------------------------
  
  import os
  import sys
  import fnmatch
  import shutil
  from os.path import join, realpath
  
  PRINT_OUTPUT = True
  REMOVE_GENERATED_AST = len(sys.argv) > 1 and sys.argv[1].lower() == "all"
  BASE_DIR = realpath(join(__file__, "..", ".."))
  
  FOLDER_PATTERNS = ["__pycache__", "build", "dist", "test-report"]
  FILE_PATTERNS = [
      "*.out", "*.pyc", "*.pyo", "*parsetab.py", "*lextab.py", ".coverage",
      "*.fuse_hidden*", "*.egg"
  ]
  
  
  def log(*args, **kwargs):
      if PRINT_OUTPUT:
          print(*args, **kwargs)
  
  
  def matches_any_pattern(name, patterns):
      return any(fnmatch.fnmatch(name, pattern) for pattern in patterns)
  
  
  def is_in_folder(name, path):
      return path.endswith(os.sep + name) or os.sep + name + os.sep in path
  
  
  def should_remove_folder(root, name):
      return matches_any_pattern(name, FOLDER_PATTERNS)
  
  
  def should_remove_file(root, name):
      return (
          matches_any_pattern(name, FILE_PATTERNS) or
          (
              REMOVE_GENERATED_AST and
              root.endswith(os.path.join("py2c", "tree")) and
              name.endswith(".py") and
              name not in ["__init__.py", "node_gen.py"]
          )
      )
  
  
  def main():
      for root, dirs, files in os.walk(BASE_DIR, topdown=False):
          if is_in_folder(".git", root):
              continue
  
          for name in dirs:
              if should_remove_folder(root, name):
                  log("Removing Folder:", join(root, name))
                  shutil.rmtree(join(root, name))
  
          for name in files:
              if should_remove_file(root, name):
                  fname = join(root, name)
                  log("Removing File:", fname)
                  os.remove(fname)
  
  
  if __name__ == '__main__':
      main()
  
new_contents: #!/usr/bin/env python3
  """Delete all unnecessary files and directories in repository
  """
  
  #------------------------------------------------------------------------------
  # Py2C - A Python to C++ compiler
  # Copyright (C) 2014 Pradyun S. Gedam
  #------------------------------------------------------------------------------
  
  import os
  import sys
  import shutil
  import fnmatch
  from os.path import join, realpath, relpath
  
  PRINT_OUTPUT = True
  REMOVE_GENERATED_AST = len(sys.argv) > 1 and sys.argv[1].lower() == "all"
  BASE_DIR = realpath(join(__file__, "..", ".."))
  
  FOLDER_PATTERNS = ["__pycache__", "build", "dist", "test-report"]
  FILE_PATTERNS = [
      "*.out", "*.pyc", "*.pyo", "*parsetab.py", "*lextab.py", ".coverage",
      "*.fuse_hidden*", "*.egg"
  ]
  
  
  def log(*args, **kwargs):
      if PRINT_OUTPUT:
          print(*args, **kwargs)
  
  
  def matches_any_pattern(name, patterns):
      return any(fnmatch.fnmatch(name, pattern) for pattern in patterns)
  
  
  def is_in_folder(name, path):
      return path.endswith(os.sep + name) or os.sep + name + os.sep in path
  
  
  def should_remove_folder(root, name):
      return matches_any_pattern(name, FOLDER_PATTERNS)
  
  
  def should_remove_file(root, name):
      return (
          matches_any_pattern(name, FILE_PATTERNS) or
          (
              REMOVE_GENERATED_AST and
              root.endswith(os.path.join("py2c", "tree")) and
              name.endswith(".py") and
              name not in ["__init__.py", "node_gen.py"]
          )
      )
  
  
  def main():
      for root, dirs, files in os.walk(BASE_DIR, topdown=False):
          if is_in_folder(".git", root):
              continue
  
          for name in dirs:
              if should_remove_folder(root, name):
                  log("Deleting Folder:", relpath(join(root, name), BASE_DIR))
                  shutil.rmtree(join(root, name))
  
          for name in files:
              if should_remove_file(root, name):
                  fname = join(root, name)
                  log("Deleting File..:", relpath(fname, BASE_DIR))
                  os.remove(fname)
  
  
  if __name__ == '__main__':
      main()
  
subject: Modify output alignment.