Python3.2 support

Clean pull request with Python 3.2 changes. Also fixed examples so they won't cause setuptools to complain during install.