testing python inference