Fixed complex example for Python 3.  This fixes #142