Code generation from python (for meta programming and use with sympy)