diff --git a/gstlal/python/segments.py b/gstlal/python/segments.py
index 3156d13c6110c9dd39074f0627e7051b29ed6ca3..81076e2177d360bd66f672dc15b6bce1d501ffa8 100644
--- a/gstlal/python/segments.py
+++ b/gstlal/python/segments.py
@@ -113,7 +113,6 @@ def query_dqsegdb_veto_segments(
 		segmentlistdict, the queried veto segments
 
 	"""
-	span = segments.segment(LIGOTimeGPS(start), LIGOTimeGPS(end))
 	if isinstance(instruments, str):
 		instruments = [instruments]
 
@@ -310,7 +309,7 @@ def split_segments_by_lock(
 	seglistdicts: segments.segmentlistdict,
 	boundary_seg: segments.segment,
 	max_time: float = 10 * 24 * 3600.,
-) -> segments.segmentlistdict:
+) -> segments.segmentlist:
 	"""Split segments into segments with maximum time and boundaries outside of lock stretches.
 
 	"""