translate little python functions into c functions