ValueError: Cannot assign must be a instance

Change per=self.AIGN_PER_ID to per_id=self.AIGN_PER_ID