fix pypy failures