Threadlocal Set String Python