Feature/ss cmd timeout

* added timeout  for external command execution


@jtsoi @vs-ab please take a look 
In this case yes however it is not good style in general [PEP-0008](http://legacy.python.org/dev/peps/pep-0008/#programming-recommendations)
> beware of writing `if x` when you really mean `if x is not None`