Don't forward data to port 0

Also made the loop in qr more pythonic.