writenc.py fixed, no need to import scipy library.