Fixed bug in PyObject iteration
Added test for iteration code
Merge pull request #59 from malmaud/iteration

Fixed bug in PyObject iteration