Use gdbpy_enter in gdbpy_before_prompt_hook