How do I respond to a virus outbreak in Prison Architect?

From what I can tell from various sources (here and here for starters) the virus event is currently very buggy and/or broken. If it is a non-fatal virus, the doctors should heal it within 12 hours. If you don't have a doctor that figure rises to 2 days. One way of dealing with this is attempting to put infected prisoners in solitary. Be careful though, as if they are let out the virus seems to spread very rapidly. If it is a fatal virus then you can do nothing about it in-game but sit and hope, since fatal viruses are bugged and doctors will not heal patients infected with the fatal virus. One solution is to save your game and then edit the file to remove infected prisoners; be sure to back up your save files before editing them though. I sourced the following Python script from here.

#!/usr/bin/python

#Open the save file and the copy file (any file with the Newprison.prison name will be erased)
f = open('autosave.prison')
f1 = open('NewAutosave.prison', 'w')
#read the file and store its line by line as a list
lines = f.readlines()
#as long as the list still contain 3 lines
while lines :
  if ('virusdeadly' in lines[0]):
    lines.pop(0)
  else:
    f1.write(lines.pop(0))

#close both files
f1.close()
f.close()