strip python chunks before the compile