extended Python API