Code Editor : hooks.py