Update contrast.py

Fixes two minor docstring typos.
Merge pull request #2042 from tshauck/patch-1

DOC: Fix two typos