Python Calculate Centroid Project Smash