python C extension examples