docs: def encode_location(location: BioCLocation):
      """Encode a single location."""
      return etree.Element('location',
                           {'offset': str(location.offset), 'length': str(location.length)})