Use __name__ instead of func_name for better compatibility across Python interpreters