Tweak StopIteration logic

Signed-off-by: Paul Brook <paul@nowt.org>
Add readme

Signed-off-by: Paul Brook <paul@nowt.org>