Fixes "'long' not defined" when used with python 3
Merge pull request #196 from venkateshhalli/patch-1

Fixes "'long' not defined" when used with python 3