remove unused codepaths, since we now only support 2.6+ we can rely on iterparse being available, add some tests