Password Generator implemented in Python