CLN: Change long literals to long function
add long to py3compat