Update readme.md
Clean Python code
Update templates, add CentOS 7 support and fix a bug in CentOS hooks