Fixed single-segment buffer error by writing to disk

Currently uses absolute paths so you may need to modify that
Merge branch 'master' of https://github.com/UCSD-TIES/DVS-Python