DOC: modified nsls2/core.py