usage renew

how to use it in python or c way