EAGI passing audio file to self defined function

I am working on speech recognition project where I want to capture live audio stream and pass it to self defined speech to text function. I am using eagi for capturing audio stream and Naked for passing audio files from python script to a javascript file i.e. call.js. Call.js doesnot seem to be executed and there is no error on terminal as well

Extensions.conf:
[from-internal]
exten=>100,1,Answer()
exten=>100,n,eagi(pahh.py)
exten=>100,n,Hangup()

pahh.py:

#!/usr/bin/python
import warnings
warnings.simplefilter(“ignore”, DeprecationWarning)
warnings.simplefilter(“ignore”, UserWarning)
from scikits.audiolab import Format, Sndfile
from scipy.signal import firwin, lfilter
from tempfile import mkstemp
from Naked.toolshed.shell import execute_js, muterun_js
import numpy as np
import urllib2
import math
import sys
import re
import os

response = muterun_js(’/home/amal/bot/bot_files_only/remoteMarketBot/call.js’)
if response.exitcode == 0:
print(response.stdout)
else:
sys.stderr.write(response.stderr)