def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def deserialize(self, value):
        """Cast raw string to appropriate type."""
        return decode(value)