update to use new way of doing swig w/ yield()