'Is this a PyEval_EvalFrameEx frame, or some other important
frame? (see is_other_python_frame for what "important" means in this
context)'

def is_python_frame(self):

    if self.is_evalframeex():
        return True
    if self.is_other_python_frame():
        return True
    return False
