Experimental Python 3 support using six.

Implements Python 3 support using the six module so one code base can be used for all versions. A possible alternative to #27.