update class 4 for python 3.3 compatibility