'Try to obtain the Frame for the python code in the selected frame,
or None'

@classmethod
def get_selected_python_frame(cls):

    frame = cls.get_selected_frame()
    while frame:
        if frame.is_evalframeex():
            return frame
        frame = frame.older()
    return None
