Reset the PkgIter iterator once done with it

* Now PkgIter behaves more like a Python iterator, allowing for
  re-iteration over it