Fix get_ident for pypy