s4-drs: split out drs utility python functions