bugfix: compatablity with py2.6