Very simple function generator in python (uses sox)