large speedup to example creation in python
fixed osx bug in active iterator