[passwordgenerator.py] Improvements