Use `space.symbol_w()`, then you can remove the `isinstance` asserts.