Update xmas-pipe.py

added threading