def METHOD_NAME(self, test):
    if cmd_args.serial:
        return False
    # This is a pretty weird way to do it, and not reliable.
    # We are dealing with some binary tests though.
    with open(test, 'rb') as fh:
        header = fh.read(100).split(b"\n")
        if len(header) >= 2 and \
                ((b"/usr/bin/env python" in header[0]) or
                 (header[1][-14:] == b"bash_tap_tw.sh")):
            return True
        else:
            return False