Lcapy is an experimental Python package for teaching linear circuit analysis.  It uses SymPy for symbolic mathematics.