Python cubes example. write) Functions to update dimensions and hierarchies (e.