simpler, cleaner and more pythonic generator

generators like this are faster and less memory-consuming than loop + concatenation
Merge branch 'patch-1' of git://github.com/brunobord/bad-password-gen into brunobord-patch-1
use range to run both python 3 and 2