long is gone in Py3, use six.integer_types
Merge pull request #5 from untitaker/python3

long is gone in Py3, use six.integer_types