Fix os.remove(), should have been os.rmdir()