Fix PythonPartitioner equality

PythonPartitioner did not take the Python-side partitioning function into account when checking for equality; see [SPARK-654](https://spark-project.atlassian.net/browse/SPARK-654)