Revised python preprocessor.