A password generator in python