Add uniform access to ctypes representation of objects