def _filter_frame(frame):
    """
    Checks if this frame is something meaningful and takes the appropriate action
    
    Returns the name if valid name, returns False if invalid name, returns None if frame is None
    """
    try: name = frame.f_globals['__name__']
    except AttributeError: #frame is None
        return None
    if name in ('importlib._bootstrap','importlib._bootstrap_external', __name__):
        return False
    return name