call spagedi using subprocess