[python] What is the difference between os.path.basename() and os.path.dirname()?