Python script to automatically generate a website based on a directory (and subdirectories) of images