Clean up imports and docstrings in denselocalarray.py