def getAllBuildings(): buildings = [] for building in Building.getAllBuildings(): buildings.append(building.__dict__) return buildings