bytecode is a Python module to generate and modify bytecode. WWW: https://github.com/MatthieuDartiailh/bytecode