Remove 2to3.
Add six compatibility module.
Remove is_str and replace by isinstance(..., six.string_types).
Correctly check for string type.
Fix zip.
Fix function code.
Fix iterator.
Fix label casting for numpy 1.7.
fix arraypad
adding main to run tests
Fix im_class access in Python 3.
Fix im_self access in Python 3.
Fix imports under Python 3.
Use int32 for labelling.