Macro pre-processor for C for and while loops using python as a programming language