A library for controlling the DeltaCE relay attenuator