python: buffered.pyfragment: add some more old code
python: buffered.pyfragment: add some more old code

We might want to bring this back some day.

martinpitt/cockpit,martinpitt/cockpit,martinpitt/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,cockpit-project/cockpit,cockpit-project/cockpit