python: Use __name__ instead of func_name for Py3 compat