Template for Python C extension which is multi interpreter safe.