Scripting support and mid level objects for analysis