Remove unused code in pyparse module.