Script now replaces bad filenames (See the settings.py to change that list) with _. Also added a regex to exclude hidden files (starting with a .) as default.