Int conversion to long in py2.x