Random password generator written in Python 2