Fixed bug in postprocess.py introduced by 2e618dceab6d.