[gauss.py] speedup by static tmp variable and cythonization