Using __name__ instead of func_name for PY3.