Fix old Python syntax.