crypt python library is not available on Windows
Fix bad try except syntax
add missing import
Merge pull request #13173 from UtahDave/fix_shadow

crypt python library is not available on Windows