Python 3 support, plus some documentation updates

I've made this library source compatible with python2 *and* python3!

I've also added some quick and simple tests in example.py to catch possible newbie errors.