Python types cannot be checked in parallel. This commit forces the number of threads to be 1 in such case.