Generate .want with C Python