use int in place of long in python3
fix print statement in documentation