Bug fixes plus Pyhton support for streaming and references