I just meant to lift it out of the receive loop.  I.e. turn writeable=True above `for source, buf in ...` and turn it off again at the end of the loop.