Java Threadlocal Variable Example In Python Code