Well, I have a look to into compiler module and gave it a try using compiler.parseFile and compiler.walk but I haven't got what I need here.