Fixed a subtle ImportError
Better management of the optional dependency from nrmllib, so that the doctests work