updated python script to wave. needs hz requirement