<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(path, pid, timestamp):
 """ Write the contents of a LockFile. Arguments: path (str):
 Path to lockfile. pid (int):
 The integer process ID. timestamp (datetime):
 The time the lock was aquired. """

        with open(path, "w") as lockfile:
            print(pid, timestamp, file=lockfile)