Update bywaf.py

added delegate function to be executed so it is picklable and the job gets done.