Add signals handler for shinken cli and fix some pep8 warnings