added file nwd.py