conversions suggested by 2to3 for Python3 compatibility