Python implementation of the labrad protocol