This also implements direct manipulation of OpenMP settings (schedule and number of threads) via python.