Copy in Hans' 1.0 version of nwc2ly.py.