A Python API class