fix print stmt for Python 3
use the api's FFI object again