import pickle


def unpickle_data(tdata):
    """
    Unpickle the data from the client
    >>> unpickle_data(b'\x80\x03X\n\x00\x00\x00Easy testsq\x00.')
    "Easy tests"
    >>> unpickle_data("Easy tests")
    "Easy tests"
    """
    try:
        if isinstance(tdata, bytes): #Quick check if tdata is already bytes
            data = pickle.loads(tdata)
        else:
            data = tdata
    except:
        data = False
    return data