diff --git a/gstlal-inspiral/python/plots/horizon.py b/gstlal-inspiral/python/plots/horizon.py
index 057426f8545d2a5289ffb1c50950bcc5faffc480..5b03bb950ab61635f640d2b0e3e80bf142368b6d 100644
--- a/gstlal-inspiral/python/plots/horizon.py
+++ b/gstlal-inspiral/python/plots/horizon.py
@@ -182,8 +182,8 @@ class HorizonDistance:
 
 		mint = int(min([min(horizon_history.keys()) for _, horizon_history in self.horizon_history_dict.items()]))
 		for ifo, horizon_history in self.horizon_history_dict.items():
-			GPSTime = numpy.array(horizon_history.keys())
-			horizon_dist = horizon_history.values()
+			GPSTime = numpy.array(list(horizon_history.keys()))
+			horizon_dist = list(horizon_history.values())
 
 			minh, maxh = (float("inf"), 0)
 			maxh = max(maxh, max(horizon_dist))