Now supporting python3.4. Added a ClassType variable for py3 and changed basestring to the new equivalent