code: def create_snapshot(self, xml_bytes):
          
          root = XML(xml_bytes)
          snapshot_id = root.findtext("snapshotId")
          volume_id = root.findtext("volumeId")
          status = root.findtext("status")
          start_time = root.findtext("startTime")
          start_time = datetime.strptime(
              start_time[:19], "%Y-%m-%dT%H:%M:%S")
          progress = root.findtext("progress")[:-1]
          progress = float(progress or "0") / 100.
          return model.Snapshot(
              snapshot_id, volume_id, status, start_time, progress)
docs: Parse the XML returned by the C{CreateSnapshot} function.
  
          @param xml_bytes: XML bytes with a C{CreateSnapshotResponse} root
              element.
          @return: The L{Snapshot} instance created.
  
          TODO: ownerId, volumeSize, description.