returns true if the input looks like a prettytable

def is_prettytable(string):
    """ returns true if the input looks like a prettytable """
    return type(string).__name__ in {'str','unicode'} and (
        len(string.splitlines()) > 1
    ) and (
        all(string[i] == string[-i-1] for i in range(3))
    )