python object layout