Update dsr.py

Started reorganizing and re-factoring basic DSR.