for infile in glob.glob(os.path.join(path, '*.png')):
    viewer = subprocess.Popen(['some_viewer', infile])
viewer.terminate()
viewer.kill()
How can I close an image shown to the user with the Python Imaging Library?