preprocess.py: Add argument parsing logic.