Fix initialisation of username on Windows
Remove 'print' use from code
Add ntrights alternative (see #9967)
Fix win32 function invocation and catch exceptions

This commit adds extra checks for dictionary keys and catches
KeyErrors. Additionally it fixes a bug with incorrect invocation
of LsaAddAccountRights. It also checks for the presence of a slash
in the Windows user name - if not present, prepends the domain name.
Merge pull request #539 from bpindelski/ntrights-fix-dev_4_4

Fix initialisation of username on Windows