Fix PyDeadObject in SaveAs.py