Fixed NameError: global name in gPasswordGen