Add python 2.5 support except block to listdir_iter