Update xmas.py with actual code now. Needs testing.