Just thought I'd let this list know python-scandir is now in the stable repos. The code itself has been accepted as an enhancement to the os module in Python 3.5, but the original independent module is great for older versions. I tend to use as an optional speedup when I am heavily using os.walk() or os.listdir(). The maintainer has been very responsive.

https://github.com/benhoyt/scandir