old_contents: import os
  
  os.system("sudo apt-get install impress")
  os.system("run.py")
new_contents: import os
  
  os.system("sudo apt-get update")
  os.system("sudo apt-get install libreoffice-impress")
  os.system("/home/pi/RaspresPy/run.py")
subject: update impress