listing the simulation py module implementation of the main simulation class from array import array from llistqueue import queue from people import ticketagentpassenger class ticketcountersimulation create simulation object def __init__selfnumagentsnumminutesbetweentimeservicetime )parameters supplied by the user self _arriveprob betweentime self _servicetime servicetime self _numminutes numminutes simulation components self _passengerq queue(self _theagents arraynumagents for in rangenumagents self _theagents[iticketagent( + computed during the simulation self _totalwaittime self _numpassengers run the simulation using the parameters supplied earlier def runself )for curtime in range(self _numminutes self _handlearrivalcurtime self _handlebeginservicecurtime self _handleendservicecurtime print the simulation results def printresultsself )numserved self _numpassengers len(self _passengerqavgwait floatself _totalwaittime numserved print"print"number of passengers served "numserved print"number of passengers remaining in line %dlen(self _passengerqprint"the average wait time was % minutes avgwait the remaining methods that have yet to be implemented def _handlearrivecurtime )handles simulation rule # def _handlebeginservicecurtime )handles simulation rule # def _handleendservicecurtime )handles simulation rule # ticketcountersimulation theagents passengerq numminutes arriveprob servicetime totalwaittime numpassengers figure sample ticketcountersimulation object