Eliminated code duplication, refactored to pattern-matching style Partitioner and PythonPartitioner
Merge pull request #751 from cdshines/master

Cleaned Partitioner & PythonPartitioner source by taking out non-related logic to Utils