[Python-Dev] thread issues when embedding Python