using iter() and simpler message formatting - thanks @lvh
Better name and docstring - per @lvh