REF: Support Python 3 using six.

This passes on Python 2.7 and 3.4 locally. It's unclear whether numba supports 3.4 yet; that's for another day.
The idea was to see if you could save a pass through the list to speed up computation.