#!/usr/bin/python

import struct,sys
import traceback
import lzma
import StringIO
import colorsys

from tiles import *

from PIL import Image

class UnRecognisedFormat(Exception):
    def __init__(self,magicNumber,majorVersion,minorVersion):
        self.magicNumber = magicNumber
        self.majorVersion = majorVersion
        self.minorVersion = minorVersion
    
    def __repr__(self):