sym2num Sympy to numpy code generator. Improvement Ideas Separate symbolic function and model creation and manipulation from code generation. This would ease generating code for other languages. Make the printer an attribute of the function and model generation classes.