splitimage.py | use os.listdir instead of glob