Go-Back-N ARQ scheme implemented in Python