Python Calculate Centroid Project