Utility function to describe a nested Python object