Get a frame or packet from the received list

def get_frame(self):
        """Get a frame or packet from the received list"""
        pkt = super(L3bpfSocket, self).get_frame()
        if pkt is not None:
            return pkt.payload