Python code for working with graphics

The current code can read palettes out of the PLAYPAL lump.