This Python package is designed to automate tasks in Audacity. It does not include an exhaustive implementation of all of the possible commands (listed in 'Scriptable Audacity' below), but instead ...
This package can read an Audacity .aup file, and can extract the audio for a given channel and save as a .wav file.