Python Pathlib Get Directory Command Machining