Modify postproc to make pypy tests work

Note: modification to test.sh is there because if running test outside of 
a virtualenv postproc.py will behave incorrectly.