first draft of spirit.py, full streaming app