fixed python binding error on document save