Python API convenience