I haven't worked with the dolfin matrix class yet. So I am not sure, what is the origin of your matrix. However, if your matrix is a representation of a linear form, you can consider using scipy.sparse
matrices that will give you all information on the pattern and so on. The matrix representation of a weak Laplacian can be obtained like
from dolfin import *
import scipy.sparse as sps
parameters.linear_algebra_backend = "uBLAS"
mesh = UnitSquareMesh(4,4)
V = VectorFunctionSpace(mesh, "CG", 2)
u = TrialFunction(V)
v = TestFunction(V)
a = inner(grad(u), grad(v))*dx
# Assemble the system
A = assemble(aa)
# Convert DOLFIN representation to scipy sparse arrays
rows, cols, values = A.data()
Aa = sps.csr_matrix((values, cols, rows))