Parse the content written by the script to standard out.

        The standard output will contain a list of relative filepaths where the generated CIF files have been written.

        :param filelike: filelike object of stdout
        :returns: an exit code in case of an error, None otherwise

def parse_stdout(self, filelike):
        """Parse the content written by the script to standard out.

        The standard output will contain a list of relative filepaths where the generated CIF files have been written.

        :param filelike: filelike object of stdout
        :returns: an exit code in case of an error, None otherwise
        """
        from aiida.orm import CifData

        content = filelike.read().strip()

        if not content:
            return self.exit_codes.ERROR_EMPTY_OUTPUT_FILE

        try:
            cifs = {}
            for line in content.split('\n'):
                filename = line.strip()
                output_name = os.path.splitext(os.path.basename(filename))[0]
                with self.retrieved.open(filename) as handle:
                    cifs[output_name] = CifData(file=handle)

        except Exception:  # pylint: disable=broad-except
            self.logger.exception('Failed to open a generated from the stdout file\n%s', traceback.format_exc())
            return self.exit_codes.ERROR_PARSING_OUTPUT_DATA

        self.out('cifs', cifs)

        return