JC,
Thanks for sharing this information! We were looking for an easy way to automate up/downloads of images that we use for automated testing and your solution was a great start for us. I have very little Python experience, but was able to make the modifications needed to get your example working with FOG 1.1.2. Many thanks for your work!
Cheers,
Dave.