[Python-Dev] Telling directories from files (Was: statcache.lstat?)