def first_name(languages=None, genders=None):
choices = []<EOL>languages = languages or ['<STR_LIT>']<EOL>genders = genders or [GENDER_MALE, GENDER_FEMALE]<EOL>for lang in languages:<EOL><INDENT>for gender in genders:<EOL><INDENT>samples = _get_firstnames(lang, gender)<EOL>choices.extend(samples)<EOL><DEDENT><DEDENT>return random.choice(choices).title()<EOL>
return a random first name
:return:

>>> from mock import patch
>>> with patch('%s._get_firstnamess' % __name__, lambda *args: ['aaa']):
...     first_name()
'Aaa'