Ward method alpha testing. kmedias.py reorganized.