[Rigo] derive Shape from object, avoid python warning