takes a screenshot of the users desktop (Currently Win only)

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