<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_first_match(basedir, string):
 """ return the first file that matches string starting from basedir """

    matches = find(basedir, string)
    return matches[0] if matches else matches