readwrite.py: copy queue when looking for errors

Signed-off-by: Joe Buck <jbbuck@gmail.com>