It's not too different to programming the CPython API, and will give optimum code in Pypy and CPython.