def get_data(self, linesep=os.linesep):
        """
        Serialize the section and return it as bytes
        :return bytes
        """

        stream = BytesIO()
        self.store(stream, linesep)
        return stream.getvalue()
Serialize the section and return it as bytes
        :return bytes