How to write my own function in C and call it in python using the IDE?

Thanks!