Gdb Script Loop While Multiple Conditions In Python What Is One Function