A perl script to general PyBlosxom format text files, then a shell script to make the directory structure and call the perl for each day’s photos:

for m in seq 1 7; do for d in 2006/0$m/??; do ./pybexif$d; done; done;