def __init__(self, **kwargs): if kwargs['table'] == 'Client': self.table_handle = ClientDataInsert() elif kwargs['table'] == 'Insurance': self.table_handle = InsuranceDataInsert() elif kwargs['table'] == 'Patient': self.table_handle = PatientDataInsert()