&gt; If you&#x27;re using multiprocessing pools so often that you think you need a decorator to clean up your code, then wow, I&#x27;d like to see what you&#x27;re up to. ;)<p>.. and I think once you do that in Python you should probably use NumPy.<p>I&#x27;ve been thinking that there should be a way to just program kernels in Modern Fortran because it&#x27;s the easiest to interact with NumPy data structures (NumPy is nothing but glue code around a collection of very efficient Fortran numeric code). f2py [1] is doing that basically, but I&#x27;ve never had the chance to setup a project like this.<p>[1] <a href="http:&#x2F;&#x2F;docs.scipy.org&#x2F;doc&#x2F;numpy-1.10.1&#x2F;user&#x2F;c-info.python-as-glue.html" rel="nofollow">http:&#x2F;&#x2F;docs.scipy.org&#x2F;doc&#x2F;numpy-1.10.1&#x2F;user&#x2F;c-info.python-as...</a>