Remove trailing whitespace; PEP8.
Update list_dir function.
Add delete_dir function.