Modify restraint to an working version

Rename recent restraint.py to restraint-repo.py
Merge pull request #30 from mrniranjan/master

Modify restraint to an working version