changed func_name to __name__