Avoid using six.PY2; fixes #48. (Thanks to Yaroslav Halchenko.)