<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def file_modify(filename, settings):
 """ Modifies file access Args: filename (str):
 Filename. settings (dict):
 Can be "mode" or "owners" """

        for k, v in settings.items():
            if k == "mode":
                os.chmod(filename,v)
            if k == "owners":
                os.chown(filename,v)