class Inbox(object): def __init__(self, a, *args, **kwargs): self.a = a def get_serializable(self): return self.__dict__