Write the corners of a triangle to a file (+vertices) (python)