Update contrast.py

Fixes two minor docstring typos.