Cleanup salt.utils.pycrypto

Fix some grammar, follow convention for referencing exception classes.
Clean up docstring
Add test for shadow.gen_password

This addresses some breakage in this function. For more info, see
https://github.com/saltstack/salt/pull/12941.
Merge pull request #12952 from terminalmage/shadow-tests

Add test for shadow.gen_password