how can i determine the length of a multi-page tiff using python image library (pil)?,img.seek(1)