Awesome, I saw your post a while back and it triggered me to write a full inliner for python, also added some IFDEF macros using context managers e.g.<p>with IFDEF(&quot;DEBUG&quot;):<p>I&#x27;ll have to dig around and find my code, your inline project was a great help in understanding the import hooks and walking the ast.