defined __iter__ in beak resource scripts