Python 3 fixes for chmod and exceptions
Merge branch 'mmn/python3_install_issue_with_chmod_and_exception_handling' into develop

 * FIX exception raising and handling in _utils.py to use Python3 syntax.
 * FIX os.chmod call in _utils._make_passphrase() to use stat bitmasks.