Python script for removing specific usage of define macro in C++