pub fn generic_taint(
    g: &PyGraphView,
    iter_count: usize,
    start_time: i64,
    infected_nodes: Vec<&PyAny>,
    stop_nodes: Vec<&PyAny>
) -> Result<HashMap<String, Vec<(i64, String)>>, PyErr>