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