Don't use long type.

int() produces long for large number on Python 2.
Merge pull request #5 from methane/remove-long

Don't use long type.
Merge pull request #4 from methane/master

Fix nested exception raised.
Fix deprecated `unittest.TestCase` method aliases.