Also add an __iter__ method to support iterating directly over net (instead of iterating over net.objects)