shorten code in manager.py
Merge pull request #25 from Fewbytes/shorten-manager-code

shorten code in manager.py