updated union.py with nwest code