BUG: mired in scipy/numpy ndarray/matrix/sparse hell