add python threading test code