Fixes to SpriteBatch.py