"""
    converts the incoming mp3 file to wave file
    """
if not os.path.exists(input_filename):
    raise AudioProcessingException('file %s does not exist' % input_filename)
command = ['lame', '--silent', '--decode', input_filename, output_filename]
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=
    subprocess.PIPE, creationflags=subprocess_flags)
stdout, stderr = process.communicate()
if process.returncode != 0 or not os.path.exists(output_filename):
    raise AudioProcessingException(stdout)
return output_filename
Handling subprocess crash in Windows