Update selftest.py for hopper