is this why of iterating using and infinite loop and an exception idiomatic in python? what an ugly language! :-)