'Generates a random password with the given length and given allowed_chars'

def make_random_password(self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'):

    from random import choice
    return ''.join([choice(allowed_chars) for i in range(length)])
