[boost] [python] can I stop iteration without exception being thrown?