move corpus loading out of __main__ block for wsgi deployments