Depends - on YouTube, there's definitely a lot of channels that encourage engineering and science of some kind, though not always in a safe way. We had Shitty Robots into just general engineering with Simone Giertz, William Osman and Michael Reeves with their dumb robots.
I would definitely include some of Simone's builds in the super serious club especially now, but Mark Rober and Build Stuff Better definitely have a more engineering focus to their videos.
Most other compiled languages do dead code elimination, which sounds similar but is a little different. Think of dead code elimination as removing code that doesn't change the output, while tree shaking instead includes code that could run.
To apply this to python is interesting - if you were creating a packaged version, I could see "compiling" the code to a separate package with only the required imports.
Don't worry, won't be likely to happen - the ads that are displayed now as banners are literally bid on when it's loading, so at most the ad serving code would be bundled, but you would still be able to block the binaries they load.
Did they finish rolling them out? I know that is (was?) the plan, but when I interviewed last year at the Santa Monica location, they only had whiteboard.