Fix migrations for pypy compat