Java Threadlocal Variable Example In Python