Fix PythonPartitioner equality; see SPARK-654.

PythonPartitioner did not take the Python-side partitioning function
into account when checking for equality, which might cause problems
in the future.
Merge pull request #390 from JoshRosen/spark-654

Fix PythonPartitioner equality