Fix import of compiled module with python3.

This at least fix #331