Instead of `func_name`, this should probably be the `dot` function object.
Get it to a static variable via PyImport etc., there are a number of examples of how to do that in Numpy's source code.