I wrote an script in python and pass it to my queue.
It has no error and return 0 ( in my asterisk console ).
'<SIP/804-00000003>AGI Script myqueue.py completed, returning 0'
I used some agi.verbose command to see my variables but couldn't find any log of it's output messages.
I used 'agi set debug on' and 'core set verbose 5' commands in CLI.