more Python API convenience