Use the python version. Got crazy with the C there for a bit.