Gdb Script Loop While Python Break Out Of If Statement