[Jython] Access to scenario in Before and After hooks. Closes #582.

The implementation is a little ghetto. I tried to get the arity
of the hook function using inspect.getargspec, but couldn't get
it to work. This implementation will most likely be sufficient though.