Python API for Casper