Upgrade to python27, threadsafe