make a py script to run this c code