remove trailing whitespace
make bywaf.py directly executable
deal with raw_input rename in python 3.x
handle new print syntax in python 3.x
fix proc_buffer NameError

introduced in 405e71d
fix NameErrors on exampleplugin