Python preprocessor