title: "Too many open files" error when opening and loading images in Pillow
body: <p>When running the following code:</p>
  
  <pre><code>KEEP=[]
  for file in glob.glob("./KEEP/thing*.[tT][iI][fF]"):
      m = pattern.search(file)
      filename=m.group(1)
      keep=Image.open(file)
      keep.load()
      KEEP.append(keep)
      KEEP_NAMES.append(filename)
      keep.close()
  </code></pre>
  
  <p>over more than a thousand files, I get the error message:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/hom/yannis/texmf/python/remove-harakat.py", line 123, in &lt;module&gt;
    File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2237, in open
  IOError: [Errno 24] Too many open files: './KEEP/thing1118_26.TIF'
  </code></pre>
  
  <p>I don't understand why this is happening, since I'm load()ing and then close()ing all files, why should they remain open?
  Is there a solution to this problem, other than reducing the number of files (which is not an option for me)? Some way to close them after their contents have been read in memory?</p>