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.
Series can eat generators, but is that relevant here? We are unpacking a specific attribute in each case. I like two lines for clarity.