Create String Buffer Python