python script to demonstrate use of threading module