If you want to move files in your local machine using Python, try shutil. The code above shows how shutil works.
Simplify Nested Structures with Python Data Classes
Simplify Object Creation with Python Class Methods
Optimizing Memory Usage in Python with Slots