elpy-rpc--filter: Keep reading after one line is processed.

With the old code, if multiple lines arrived at once, we might miss
consecutive lines. This now keeps reading while we have complete lines
available.