Python controls for XPD beamline at the NSLS-II