Fixed Person1 -- you needed another ')' on line starting with
"buffer.append..."