It's for compatibility with Python 3, where func_name (the name of a function) has been replaced by __name__