tiny abstract data type on python