Create threads.py

Added threading example