Implement some Integer methods, and port to .py

Is it a good way that porting to .py?