class FifoTaskQueue: def enqueue(self, task): '''Append a new task to the end of the queue''' def dequeue(self): '''Pop a task from the beginning of the queue'''