Fix an issue where the OS X build unnecessarily deletes some Python files, leaving in their place cached files that may induce unwanted behavior.