fix PyDeadObject in SaveAs.py
Merge pull request #970 from LipuFei/fix_pydeadobject_saveas

Fix PyDeadObject in SaveAs.py