Fixed test failures caused by Django six update.

The new six no longer raises AttributeErrors instead of ImportErrors.
The exception for six.moves is needed as inspect.getmembers triggers
some unavailable imports when used with this fake package.