cardinality of a set python