QValueVector<fnCleanupHandler>::iterator it; for (it = cleanupHandler.begin(); it != cleanupHandler.end(); ++it) { (*it)(); }
void stopPython() {    // Give the Python Threads time to finalize	Py_BEGIN_ALLOW_THREADS		QWaitCondition waitCondition;		waitCondition.wait(500);	Py_END_ALLOW_THREADS	// We have to be sure that all memory	// is freed here.	Py_Finalize();}