def gen_slot_variables(self, cls: ClassDefinition) -> str:
return '<STR_LIT>'.join([self.gen_slot_variable(cls, pk) for pk in self.primary_keys_for(cls)] +<EOL>[self.gen_slot_variable(cls, slot)<EOL>for slot in cls.slots<EOL>if not self.schema.slots[slot].primary_key and not self.schema.slots[slot].identifier])<EOL>
Generate python definition for class cls, generating primary keys first followed by the rest of the slots