Is there a better way to write 'pre processing and post processing'?

Your example is grammatical, but it might be better to write pre- and post-processing so that it's obvious that pre- is a prefix for processing also.