Multi-thread example in Python.