PyWaveTools contains Python tools for sound wave generation. I've been exploring NumPy and Python wave module for generating various types of wave forms.
Most of the functionality is in wavelib.py. The other files are examples showing how to generate various tones.