You ought to change the variable name from classname to director_classname as classname throughout SWIG is usually not the director name. The variables returned for the director classname are annoyingly inconsistent, but that ought to be a separate patch and for all languages, so perhaps leave this for now.