Python 2 needs a `long` here, can you provide a solution for that?