Truncate main.{py,ipynb} files.