simple C extension for Python