Change to use scandir.
Add scandir to requirements.