modify dstream.py to fix indent error