fixes OIIO issue 518, extra_attribs properly responds to iterator calls

Previously when iterating on extra_attribs there was a segfault once it got to iter::end, by adding the __iter__  and the proper iter call, python can handle the end of the iteration gracefully.