elegant way to take basename of directory in python?,"os.path.dirname(os.path.join(output_dir, ''))"