A simulation of some rumor spreading algorithms in Python