This won't work for builtin functions. It hardly works for functions and methods defined in 3rd party modules and in no way for functions defined in C extensions. It adds boilerplate statically to remove it at runtime.