a little script to turn the inside of a struct into a AVOption array