Extended PackageManager.rewrite_metadata_py() with dry_run=False keyword.