The functionality of updating and returning the delay cycles would now be performed by the dequeue() function itself.
This makes it easier to add global variables like protocol
This is simply a translation of the C++ slicc into python with very minimal reorganization of the code. The output can be verified as nearly identical by doing a "diff -wBur". Slicc can easily be run manually by using util/slicc