A Python network simulator