initial add of flickr_stats code
a better way to specify unbuffered output
better comments