This is not pythonic way to traverse lists. Don't use counters like 'i', this is Pascal/C/PHP way :)

If the data is a list, you can go through it using simple for: for x in data: print x