from random import choice


def temp_password(length=10,
                  allowed_chars=("abcdefghjkpqrstuvwxyz"
                                 "3456789ACDEFGHJKLMNPQRSTUVWXY")):
    """
    Generates a temporary password with the given length and given
    allowed_chars.
    """
    return ''.join([choice(allowed_chars) for i in range(length)])