Merge pull request #3 from dmcglinn/master

Revision of python partition code
Merge pull request #4 from dmcglinn/master

Minor changes to python code and start of R code edits
revised top_down algorithm according to Dan's suggestions -KL
Fixed Ken's conflict on partitions.py