No bug - implement preprocess.sh functionality in Python.