Import hooks are awesome, one of the cool things you can do is re-write the code as you load it. I made a toy loader that automagically inlines (some) Python function calls[1]. There are also cool projects like MacroPy[2] that do much more extensive things.<p>1. <a href="https:&#x2F;&#x2F;tomforb.es&#x2F;automatically-inline-python-function-calls" rel="nofollow">https:&#x2F;&#x2F;tomforb.es&#x2F;automatically-inline-python-function-call...</a><p>2. <a href="https:&#x2F;&#x2F;github.com&#x2F;lihaoyi&#x2F;macropy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lihaoyi&#x2F;macropy</a>