Primitive and non-primitive data structures in Python