Generate source code for Python and Numpy functions via Sympy