Removed python3-incompatible functions