# Pastebin iRekHKCJ def __patchy_freevars__(): freevar_a = object() freevar_b = object() def patched_func(): return None freevar_a freevar_b return patched_func old_patched_func.__code__ = __patchy_freevars__().__code__