py: Small cleanup in stream.c.