class Person(object):
    __slots__ = 'first_name', 'last_name'

def __init__(self, first_name, last_name):
    self.first_name = first_name
self.last_name = last_name
How To Limit Properties Available On a Python Class