Try something like this:
for red, green, blue, alpha in raw_png_data:
#do something
You can pull out multiple items and never have to use an iterator. :)
Edit: This would mean that raw_png_data needs to be a list of 4 value tuples. It would be most pythonic to put each rgba group into a tuple and then append it to raw_png_data and iterate through like my example.
excid3
2010-08-05 13:29:03