Its best to utilize our files.py io module. we might need a few more methods for is_dir etc.. revamp the clean script