python c extension template