Updated the comments
Made 0.9 a function argument for check_enough_space
Replace most of safe_mkdir with a call to os.makedirs
PEP8-ize the function names
Defined an instance of LocalDatasetCache in cache.py itself