def _is_binary(fp):
    if isinstance(fp, _get_inst()):
        return fp.startswith(b'bplist00')
    header = fp.read(32)
    fp.seek(0)
    return (header[:8] == b'bplist00')
def _is_binary(fp):
    if isinstance(fp, _get_inst()):
        return fp.startswith(b'bplist00')
    header = fp.read(32)
    fp.seek(0)
    return (header[:8] == b'bplist00')