Example python scripts for saving snapshots of IQ data (AD9371)

Hi,

I would like to be able to write a python script to select an RF LO Frequency, get a snapshot of data, save it as a text file and then repeat with different frequencies.  Is this possible? If so, do you have any examples of python scripts that would help?