fix help should not show detached option when itis not allowed
fix #56 regression,  Values instance has no attribute 'detach'
fixed several trivial pep8 issues
fix rosws regenarte missing -t option
unused var
better codestyle
fix vulnerable style: undefined var