Modify restraint to an working version

Rename recent restraint.py to restraint-repo.py