Python library for Chain API