added spect_lib.py