add support for num_iter in pygco