experiments using sympy for code generation