make RWops functions raise SDLError like pygame