Python Create String Buffer Example