Fix some things that fail on pypy. (@Hodgestar)