class MyClass():

    def __init__(self):
        self.ID = self.id_generator()

    def id_generator(self):
        id_ = 0
        while 1:
            id_ += 1
            yield id_


    def order(self):
        return {'Type': 'CLIENT',
                      'Id': next(self.ID)}


customer = MyClass()
print(customer.order())
print(customer.order())
customer = MyClass()
print(customer.order())
print(customer.order())
print(customer.order())
