modernize loader
fix iterator error in py3