Implement a queue class in Python
I would have just inherited from the built-in collections.deque:

from collections import deque

class Queue(deque):
    def add(self, value):
        self.append(value)

    def top(self):
        return self[0]

    def pop(self):
        return self.popleft()