title: python os.path.getctime max does not return latest
body: <p>I have two files, one clearly more recent then the other, however max function when sorting by os.path.getctime does not return the most recent file.</p>
  
  <pre><code>$ ls -lpat /foo.tar.gz
  -rw-r--r-- 1 appsc appsc 29653389 May 21 15:05 /foo.tar.gz
  $ ls -lpat /bar.tar.gz
  -rw-r--r-- 1 appsc appsc 29653554 May 27 17:30 /bar.tar.gz
  $ date
  Wed Jun  4 01:23:29 UTC 2014
  $ python3
  Python 3.3.2 (default, Nov  6 2013, 12:16:42) 
  [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import os
  &gt;&gt;&gt; compare = ['/bar.tar.gz', '/foo.tar.gz']
  &gt;&gt;&gt; print(max(compare, key=os.path.getctime))
  /foo.tar.gz
  &gt;&gt;&gt; print(max(compare, key=lambda x: os.path.getctime(x)))
  /foo.tar.gz
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>There must be something I am missing there...</p>
  
  <p>Thanks for the help</p>