In these links, you will find more information about the tools mentioned in this chapter and their official documentation:
Pycryptodome is a module based in the pycrypto library available in the pypi repository:
https://pypi.org/project/pycryptodome/
https://github.com/Legrandin/pycryptodome
https://www.pycryptodome.org/en/latest/
In these links, we can see other examples related to the Pycrypto modules:
https://github.com/X-Vector/Crypt0x/tree/master/Crypt0x
https://github.com/jmortega/pycon-security_criptography
If you need to explore password-generation in greater depth, you can find other interesting modules such as Secrets:
https://docs.python.org/3/library/secrets.html#module-secrets
The secrets module is used for generating cryptographically-strong random numbers that are suitable for managing data, such as passwords, account authentication, security tokens...