python: Use pipe_buffer_* inlines as much as possible.