remove unused code in py3compat