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