Update bywaf.py

Added a delegate function in the new process (called by submit()) to take care of executing the the required function.
Jobs now finish as expected.
And can be cancle()-ed unless in special cases, unrelated to this commit (infinite loops[tested], *blocking sockets[test this assumption])