forms pep8 fixed
changed prints of cli to exceptions and logs also fixed pep8 style