How to do conditional compilation in Python ?
Is it using DEF ?
You could use the method discussed here: Determine if variable is defined in Python as a substitute for #ifdef
#ifdef