code: def screenshot(fname):
      
      try:
          im = ImageGrab.grab()
          im.save(fname)
      except Exception as ex:
          print('image_tools.screenshot:cant create screenshot ' + str(ex))
docs: takes a screenshot of the users desktop (Currently Win only)