Python Simulation of the reliability of a wireless network