basically I have to simplify in Cadabra
$\frac{1}{k.pk.(p+q) }+\frac{1}{k.qk.(p+q) }$ which is equal to $\frac{1}{k.p~~k.q }$
What I tried is
{c,f}::Indices;
m:=1/((p_{c}+q_{c})k_{c}*(q_{f})k_{f});
n:=1/((p_{c}+q_{c})k_{c}*(p_{f})k_{f});
w:= @(m) + @(n);
distribute(_);
substitute(_, $k_{c} p_{c} = kp, k_{c} q_{c} = kq$, repeat=True);
map_sympy(_, "together");
But it is showing an import error : No module named Sympy.
What should i do to rectify the same