Don't use features removed in newer python versions.