So I was trying to implement a CRS key exchange using modular polynomial. I start with a curve $E_1$, for Elkies prime $\ell$, I solve for the roots of classical modular polynomial $\Phi_\ell(X,j(E_1))$. Then I could obtain the j-invariant $j(E_2)$ of an isogeneous curve. However, I should be distinguishing two possible isogeny with different Frobenius eigenvalues $\lambda,\mu$. Therefore I have to somehow restore the isogeny polynomial to do this, which is suggested in [1], page 12.
Problem. Suppose $E_1,E_2$ of the same characteristic are isogeneous given by $\phi:E_1\to E_2$ where $\ker\phi$ is small. Is it possible to compute its kernel polynomial $\chi\in\mathbb F_p[X]$ that collects $\ker\phi$ as its zeros? In particular, I was using SageMath 9.0, is there anything I can use in it?
[1]"CSIDH: An Efficient Post-QuantumCommutative Group Action," Castryck et al.