Fix tests around to_python

Conflicts:
	lms/djangoapps/bulk_email/tests/test_err_handling.py
Merge pull request #3042 from edx/flowerhack/opaque-keys

Fix tests around to_python