PEP8ify.
Use secure RNG.
Merge branch 'pep8'

Conflicts:
	generators/haproxy.py