fix __repr__ for Ostype