This is a working script.  All you need to change is the file name and the bounding box that you want to search.

There is still more to do but this is usable to get flickr photo data.