If the function name is given as `{  >.  }`, then the `func_name` will be trimmed down to be an empty string.

I think that you need a check that there's still a valid function name, before calling Python.