Fixed issue #365
Fixed issue #365

This is actually the patch originally from @wbowling in #468. However, `long` is deprecated in Python3 (see PEP-0237) so I just used `int`.
hugsy/gef,hugsy/gef,hugsy/gef