changes to pyglatin to introduce error checking