replaced uses of long() with int()

The latest update broke ST3 compatibility for me; long() apparently no longer exists in py3; int() should be used instead.