The problem was resolved by reinstalling NSO. For some reason I didn't have _ncs_py2.so for the first install. I was using Mac os and Python 2.7.15. The PATH included '/Users/user/nso-4.7/src/ncs/pyapi'.