code: def _expand_disk(disk):
      '''
      Convert the libcloud Volume object into something more serializable.
      '''
      ret = {}
      ret.update(disk.__dict__)
      zone = ret['extra']['zone']
      ret['extra']['zone'] = {}
      ret['extra']['zone'].update(zone.__dict__)
      return ref _expand_disk(disk):
      '''
      Convert the libcloud Volume object into something more serializable.
      '''
      ret = {}
      ret.update(disk.__dict__)
      zone = ret['extra']['zone']
      ret['extra']['zone'] = {}
      ret['extra']['zone'].update(zone.__dict__)
      return ret
docs: Convert the libcloud Volume object into something more serializable.