fix multi threaded imp loading issues with python 3.2