fixed python save issue