Small fixes

- Fixed typos (with the help of aspell)
- Make it run on Python 3