pywriter: move BCD/DPD routines to header