clean up imports, comments in centroid.py
clean up imports in canonicalization testing