Provide a stream parser for python bindings. #3918