pep8: fix recent pep8 violations

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
CLOUDSTACK-4813: add function to get ExitValue when run bash commands
(cherry picked from commit b4397acfccd651bc67bb842097def5ded995c125)