Added Python scripting functionality