Python Code for Generating a Password