There are tools to do this in fenicstools as well. Otherwise, it's quite straightforward to do it yourselves as Kent-Andrè suggests by, e.g.,
from dolfin import *
mesh = UnitSquareMesh(5, 5)
V = FunctionSpace(mesh, 'CG', 1)
A = assemble(TrialFunction(V)*TestFunction(V)*dx)
B = A.copy()
B._scale(2.)
am = as_backend_type(A).mat()
bm = as_backend_type(B).mat()
cm = am.matMult(bm)
# Now get it back into a dolfin matrix
C = Matrix(PETScMatrix(cm))
print C.getrow(0)
This works with development version, not quite sure about older versions.