I have a password generator:
import random, string def gen_pass(): foo = random.SystemRandom() length = 64 chars = string.letters + string.digit
You might want to read this about why /dev/urandom is the way to go:
http://www.2uo.de/myths-about-urandom/