Python example that uses graph listeners to record a wave file