Although I guess this deprecation warning isn't too bad, I still feel a bit nervous ignoring it.

Using `divmod()` on complex numbers was removed in Python 3. I know we won't be moving to Python 3 any time soon, but maybe it's simple enough to test if the number is complex and don't run `divmod()` in this case?

If you can't find an easy way to do so, I guess I'd rather see the deprecation message than ignore it (although I can be convinced otherwise).