<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parts(self):
 """Split the path into parts like Pathlib """

        parts = self.split(os.path.sep)
        parts[0] = parts[0] and parts[0] or '/'
        return parts