return the offset (int) of a string

def get_string_offset(edge):
    """return the offset (int) of a string"""
    onset_label = edge.find('labels[@name="SEND"]')
    onset_str = onset_label.xpath('@valueString')[0]
    return int(onset_str)