Generic Lua sandbox for dynamic data analysis