<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_file(filename):
 """ return the contents of the file named filename or None if file not found """

    if os.path.isfile(filename):
        with open(filename, 'r') as f:
            return f.read()