I\'m interested in creating a very simple, high (cryptographic) quality random password generator. Is there a better way to do this?
import os, random, strin
Considering your comment,
I just need to be able to generate passwords that are more secure than the ones I would come up with in my head.
it seems you want to use your program to generate passwords, rather than just writing it as an exercise. It is preferable to use an existing implementation, because if you make a mistake, the output might be compromised. Read about random number generator attacks; in particular, a well-known RNG bug in Debian exposed people's SSL private keys.
So instead, consider using pwgen. It provides several options, which you should choose depending on what you plan to use the passwords for.