remove malloc stuff not compatible with pypy