merge of #2531 python 3
Remove 'OPAQUE' from error message

Fixes #972