py: Make sure getattr() works with non-interned strings (by interning them).