python3 support

I've added support for python 3 to the package. There were only a handful of changes that were required, but the six package was needed in order to deal with metaclasses.

tested using python 3.3.2 and 2.7.5 under Fedora 20.