Read the contents of a LockFile.

        Arguments:
            path (str): Path to lockfile.

        Returns:
            Tuple(int, datetime): The integer PID of the lock owner, and the
                date the lock was required. If the lock is not claimed, both
                values are None.

def read(path):
        """
        Read the contents of a LockFile.

        Arguments:
            path (str): Path to lockfile.

        Returns:
            Tuple(int, datetime): The integer PID of the lock owner, and the
                date the lock was required. If the lock is not claimed, both
                values are None.
        """
        if fs.exists(path):
            with open(path) as infile:
                components = infile.read().split()
                pid = int(components[0])
                date = datetime.date.fromtimestamp(float(components[1]))
            return pid, date
        else:
            return None, None