render changes compatible with python 3.2