<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def spliceext(filepath, s):
 """Add s into filepath before the extension Args: filepath (str, path):
 file path s (str):
 string to splice Returns: str """

    root, ext = os.path.splitext(safepath(filepath))
    return root + s + ext