How to get only the name of the path with python?

python get filename from path no extension
python get filename from directory
python get filename with extension
python get directory from path
python get file path
python append path
python path
python os path append