Add Python 3 support

Credits to @edschofield for the work.
Typo: "quiet" should be "quite".