old_contents: #!/usr/bin/python
  
  import picamera
  from PIL import Image
  from time import sleep
  
  with picamera.PiCamera() as camera:
      camera.resolution = (1280, 720)
      camera.framerate = 24
      camera.start_preview()
      time.sleep(2)
      
new_contents: #!/usr/bin/python
  
  import picamera
  from time import sleep
  
  with picamera.PiCamera() as camera:
      camera.resolution = (1280, 720)
      camera.framerate = 24
      camera.start_preview()
      time.sleep(2)
      
subject: remove PIL from video_preview.py